]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xmlres.cpp
Split some of the recent code out to make it more reusable.
[wxWidgets.git] / src / xrc / xmlres.cpp
index 5134702c5041b3a008f740cd1565a566c68bbe9e..0486728557d009494e0e09b7c7272e18c0e1a57d 100644 (file)
@@ -8,7 +8,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "xmlres.h"
 #endif
 
@@ -103,7 +103,7 @@ bool wxXmlResource::Load(const wxString& filemask)
         fnd = wxXmlFindFirst;
     else
         fnd = filemask;
-    while (!!fnd)
+    while (!fnd.empty())
     {
         // NB: Load() accepts both filenames and URLs (should probably be
         //     changed to filenames only, but embedded resources currently