]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsres.cpp
added an error message if a bitmap can't be addedto the image list
[wxWidgets.git] / src / gtk / utilsres.cpp
index d743ad554e8872c577e39ac1983752af06c506d9..d14f938bde6ea1f43486f7aa0d289fdd44d9265e 100644 (file)
@@ -109,7 +109,7 @@ static char *GetIniFile(char *dest, const char *filename)
     return dest;
 }
 
-static void wxXMergeDatabases(void)
+static void wxXMergeDatabases()
 {
     XrmDatabase homeDB, serverDB, applicationDB;
     char filenamebuf[1024];
@@ -159,7 +159,7 @@ static void wxXMergeDatabases(void)
 // called on application exit
 //-----------------------------------------------------------------------------
 
-void wxFlushResources(void)
+void wxFlushResources()
 {
     char nameBuffer[512];
 
@@ -255,10 +255,14 @@ bool wxGetResource(const wxString& section, const wxString& entry, char **value,
         // home directory instead of current directory -- JACS
         (void)GetIniFile(buffer, file);
 
-        wxNode *node = wxTheResourceCache->Find(buffer);
+        wxNode *node = (wxNode*) NULL;  /* suppress egcs warning */
+       node = wxTheResourceCache->Find(buffer);
         if (node)
+       {
             database = (XrmDatabase)node->Data();
-        else {
+       }
+        else 
+       {
             database = XrmGetFileDatabase(buffer);
             wxLogTrace(wxTraceResAlloc, "Get: Number = %d", wxTheResourceCache->Number());
             wxTheResourceCache->Append(buffer, (wxObject *)database);