From 9104d8320eecd728b0e365f48472db2490f0adb1 Mon Sep 17 00:00:00 2001 From: "erik%netscape.com" Date: Fri, 2 Apr 1999 20:34:14 +0000 Subject: [PATCH] AIX's compiler is strict. Fixed my code. --- gfx/src/gtk/nsFontMetricsGTK.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gfx/src/gtk/nsFontMetricsGTK.cpp b/gfx/src/gtk/nsFontMetricsGTK.cpp index f4ad408acbe..dd6cd4e3f74 100644 --- a/gfx/src/gtk/nsFontMetricsGTK.cpp +++ b/gfx/src/gtk/nsFontMetricsGTK.cpp @@ -1243,15 +1243,17 @@ DumpTree(void) #endif /* DEBUG_DUMP_TREE */ static PLHashNumber -HashKey(const nsString* aString) +HashKey(const void* aString) { - return (PLHashNumber) nsCRT::HashValue(aString->GetUnicode()); + return (PLHashNumber) + nsCRT::HashValue(((const nsString*) aString)->GetUnicode()); } static PRIntn -CompareKeys(const nsString* aStr1, const nsString* aStr2) +CompareKeys(const void* aStr1, const void* aStr2) { - return nsCRT::strcmp(aStr1->GetUnicode(), aStr2->GetUnicode()) == 0; + return nsCRT::strcmp(((const nsString*) aStr1)->GetUnicode(), + ((const nsString*) aStr2)->GetUnicode()) == 0; } struct nsFontSearch