From: Vadim Zeitlin Date: Wed, 8 May 2002 22:20:13 +0000 (+0000) Subject: compilation fix for wxObject NO_COPY X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/51fdd3daec0d77168c7054b3bebaf86cfb9af43c compilation fix for wxObject NO_COPY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/volume.cpp b/src/msw/volume.cpp index 5a3ad4e440..2d7fe331b9 100644 --- a/src/msw/volume.cpp +++ b/src/msw/volume.cpp @@ -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; };