Remove MSVC6 support.
Don't support this compiler any more, this allows to get rid of tons of MSVC6-specific workarounds, in particular we can now use Bind() and natural template functions calls in the library code. Also remove MSVC6 project and solution files and don't generate them when bakefile_gen is ran any more (removing the remaining occurrences of msvc6prj from the bakefiles results in weird bake-time errors, so it's simpler to just leave them there). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -515,7 +515,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
wxDateTime testTime = wxDateTime::Now();
|
||||
any = testTime;
|
||||
prop->SetValue(any);
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), wxDateTime) != testTime )
|
||||
if ( prop->GetValue().GetAny().As<wxDateTime>() != testTime )
|
||||
RT_FAILURE();
|
||||
#endif
|
||||
|
||||
@@ -523,10 +523,10 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
int testInt = 25537983;
|
||||
any = testInt;
|
||||
prop->SetValue(any);
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), int) != testInt )
|
||||
if ( prop->GetValue().GetAny().As<int>() != testInt )
|
||||
RT_FAILURE();
|
||||
#ifdef wxLongLong_t
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), wxLongLong_t) != testInt )
|
||||
if ( prop->GetValue().GetAny().As<wxLongLong_t>() != testInt )
|
||||
RT_FAILURE();
|
||||
#endif
|
||||
|
||||
@@ -534,7 +534,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
wxString testString = "asd934jfyn3";
|
||||
any = testString;
|
||||
prop->SetValue(any);
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), wxString) != testString )
|
||||
if ( prop->GetValue().GetAny().As<wxString>() != testString )
|
||||
RT_FAILURE();
|
||||
|
||||
// Test with a type generated with IMPLEMENT_VARIANT_OBJECT()
|
||||
@@ -542,7 +542,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
wxColour testCol = *wxCYAN;
|
||||
any = testCol;
|
||||
prop->SetValue(any);
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), wxColour) != testCol )
|
||||
if ( prop->GetValue().GetAny().As<wxColour>() != testCol )
|
||||
RT_FAILURE();
|
||||
|
||||
// Test with a type with custom wxVariantData defined by
|
||||
@@ -551,7 +551,7 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
|
||||
wxPoint testPoint(199, 199);
|
||||
any = testPoint;
|
||||
prop->SetValue(any);
|
||||
if ( wxANY_AS(prop->GetValue().GetAny(), wxPoint) != testPoint )
|
||||
if ( prop->GetValue().GetAny().As<wxPoint>() != testPoint )
|
||||
RT_FAILURE();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user