compilation/linking fixes for DLL build in release mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-24 01:56:00 +00:00
parent f7b5f357d4
commit 9be2e3416d
27 changed files with 465 additions and 310 deletions

View File

@@ -1352,8 +1352,8 @@ bool wxVariant::operator== (const wxString& value) const
wxString thisValue;
if (!Convert(&thisValue))
return FALSE;
else
return (value == thisValue);
return value == thisValue;
}
bool wxVariant::operator!= (const wxString& value) const
@@ -1450,8 +1450,8 @@ bool wxVariant::operator== (const wxTime& value) const
wxTime thisValue;
if (!Convert(&thisValue))
return FALSE;
else
return (value == thisValue);
return value == thisValue;
}
bool wxVariant::operator!= (const wxTime& value) const
@@ -1478,8 +1478,8 @@ bool wxVariant::operator== (const wxDate& value) const
wxDate thisValue;
if (!Convert(&thisValue))
return FALSE;
else
return (value == thisValue);
return (value == thisValue);
}
bool wxVariant::operator!= (const wxDate& value) const
@@ -1668,13 +1668,12 @@ bool wxVariant::GetBool() const
wxString wxVariant::GetString() const
{
wxString value;
if (Convert(& value))
return value;
else
if (!Convert(& value))
{
wxFAIL_MSG(wxT("Could not convert to a string"));
return wxString("");
}
return value;
}
// For some reason, Watcom C++ can't link variant.cpp with time/date classes compiled
@@ -1682,27 +1681,25 @@ wxString wxVariant::GetString() const
wxTime wxVariant::GetTime() const
{
wxTime value;
if (Convert(& value))
return value;
else
if (!Convert(& value))
{
wxFAIL_MSG(wxT("Could not convert to a time"));
return wxTime();
}
return value;
}
wxDate wxVariant::GetDate() const
{
wxDate value;
if (Convert(& value))
return value;
else
if (!Convert(& value))
{
wxFAIL_MSG(wxT("Could not convert to a date"));
return wxDate();
}
return value;
}
#endif
#endif // wxUSE_TIMEDATE
void* wxVariant::GetVoidPtr() const
{