X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3324be240257cb1a97c439616a1d58cb3b437cc..a3ef5bf5045991260005634272633717c0a26174:/src/msw/ole/dataobj.cpp diff --git a/src/msw/ole/dataobj.cpp b/src/msw/ole/dataobj.cpp index 944540a430..2d202e39eb 100644 --- a/src/msw/ole/dataobj.cpp +++ b/src/msw/ole/dataobj.cpp @@ -358,6 +358,11 @@ wxDataObject::~wxDataObject() const char *wxDataObject::GetFormatName(wxDataFormat format) { #ifdef __WXDEBUG__ + // case 'xxx' is not a valid value for switch of enum 'wxDataFormat' + #ifdef _MSC_VER + #pragma warning(disable:4063) + #endif // VC++ + static char s_szBuf[128]; switch ( format ) { case CF_TEXT: return "CF_TEXT"; @@ -380,9 +385,14 @@ const char *wxDataObject::GetFormatName(wxDataFormat format) sprintf(s_szBuf, "clipboard format %d (unknown)", format); return s_szBuf; } - #else + + #ifdef _MSC_VER + #pragma warning(default:4063) + #endif // VC++ + +#else // !Debug return ""; -#endif +#endif // Debug } // ---------------------------------------------------------------------------- @@ -405,5 +415,7 @@ static const char *GetTymedName(DWORD tymed) } } +// TODO: OLE parts of wxBitmap/File/MetafileDataObject + #endif