X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df5168c427b51f1ab2b3200a5c8f7626b3d24aae..b6a20a20d010d643e52914f51aa0700df0da925f:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 85ea9a9805..79f7c116a7 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "variant.h" #endif @@ -713,18 +713,9 @@ bool wxVariantDataChar::Read(wxString& str) * wxVariantDataString */ -#if defined(__BORLANDC__) && defined(__WIN16__) -// Change name because of truncation -#define wxVariantDataString wxVariantStringData -#endif - class WXDLLIMPEXP_BASE wxVariantDataString: public wxVariantData { -#if defined(__BORLANDC__) && defined(__WIN16__) -DECLARE_DYNAMIC_CLASS(wxVariantStringData) -#else DECLARE_DYNAMIC_CLASS(wxVariantDataString) -#endif public: wxVariantDataString() { } wxVariantDataString(const wxString& value) { m_value = value; } @@ -816,11 +807,7 @@ bool wxVariantDataString::Read(wxString& str) return TRUE; } -#if defined(__BORLANDC__) && defined(__WIN16__) -IMPLEMENT_DYNAMIC_CLASS(wxVariantStringData, wxVariantData) -#else IMPLEMENT_DYNAMIC_CLASS(wxVariantDataString, wxVariantData) -#endif /* * wxVariantDataVoidPtr @@ -2019,9 +2006,9 @@ bool wxVariant::Convert(bool* value) const { wxString val(((wxVariantDataString*)GetData())->GetValue()); val.MakeLower(); - if (val == wxT("TRUE") || val == wxT("yes")) + if (val == wxT("true") || val == wxT("yes")) *value = TRUE; - else if (val == wxT("FALSE") || val == wxT("no")) + else if (val == wxT("false") || val == wxT("no")) *value = FALSE; else return FALSE;