]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dircmn.cpp
added version checking to the renderers
[wxWidgets.git] / src / common / dircmn.cpp
index 246df8fb3abfa159ffa09314abf90f097275f360..801e2d1f9f9b059c89490de38bc91286ea6f64f3 100644 (file)
@@ -18,7 +18,7 @@
 // ----------------------------------------------------------------------------
 
 /* this is done in platform-specific files
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "dir.h"
 #endif
 */
@@ -206,7 +206,7 @@ public:
 
     virtual wxDirTraverseResult OnFile(const wxString& filename)
     {
-        m_files.Add(filename);
+        m_files.push_back(filename);
         return wxDIR_CONTINUE;
     }
 
@@ -217,6 +217,8 @@ public:
 
 private:
     wxArrayString& m_files;
+
+    DECLARE_NO_COPY_CLASS(wxDirTraverserSimple)
 };
 
 /* static */