]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxObject NO_COPY
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 May 2002 22:20:13 +0000 (22:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 May 2002 22:20:13 +0000 (22:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/volume.cpp

index 5a3ad4e44086e81f0fa92cd18d1640b33452ab04..2d7fe331b90260db04de45e1638777cb665908ee 100644 (file)
@@ -99,6 +99,15 @@ struct FileInfo : public wxObject
 {
     FileInfo(unsigned flag=0, wxFSVolumeKind type=wxFS_VOL_OTHER) :
         m_flags(flag), m_type(type) {}
+
+    FileInfo(const FileInfo& other) { *this = other; }
+    FileInfo& operator=(const FileInfo& other)
+    {
+        m_flags = other.m_flags;
+        m_type = other.m_type;
+        return *this;
+    }
+
     unsigned m_flags;
     wxFSVolumeKind m_type;
 };