VC6 compilation fixes (#10059)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@56161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
#include "wx/ioswrap.h"
|
#include "wx/ioswrap.h"
|
||||||
|
|
||||||
// need this to be able to use CPPUNIT_ASSERT_EQUAL with wxDateTime objects
|
// need this to be able to use CPPUNIT_ASSERT_EQUAL with wxDateTime objects
|
||||||
static wxSTD ostream& operator<<(wxSTD ostream& ostr, const wxDateTime& dt)
|
static std::ostream& operator<<(std::ostream& ostr, const wxDateTime& dt)
|
||||||
{
|
{
|
||||||
ostr << dt.FormatISODate() << " " << dt.FormatISOTime();
|
ostr << dt.FormatISODate() << " " << dt.FormatISOTime();
|
||||||
|
|
||||||
|
@@ -290,7 +290,7 @@ void FileNameTestCase::TestNormalize()
|
|||||||
{
|
{
|
||||||
const wxChar *original;
|
const wxChar *original;
|
||||||
int flags;
|
int flags;
|
||||||
wxString expected;
|
const wxChar * expected;
|
||||||
} tests[] =
|
} tests[] =
|
||||||
{
|
{
|
||||||
// test wxPATH_NORM_ENV_VARS
|
// test wxPATH_NORM_ENV_VARS
|
||||||
@@ -335,7 +335,7 @@ void FileNameTestCase::TestNormalize()
|
|||||||
);
|
);
|
||||||
|
|
||||||
// compare result with expected string
|
// compare result with expected string
|
||||||
CPPUNIT_ASSERT_EQUAL( tests[i].expected, fn.GetFullPath(wxPATH_UNIX) );
|
CPPUNIT_ASSERT_EQUAL( wxString(tests[i].expected), fn.GetFullPath(wxPATH_UNIX) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxRects
|
// this operator is needed to use CPPUNIT_ASSERT_EQUAL with wxRects
|
||||||
wxSTD ostream& operator<<(wxSTD ostream& os, const wxRect& r)
|
std::ostream& operator<<(std::ostream& os, const wxRect& r)
|
||||||
{
|
{
|
||||||
os << "{"
|
os << "{"
|
||||||
<< r.x << ", " << r.y << ", " << r.width << ", " << r.height
|
<< r.x << ", " << r.y << ", " << r.width << ", " << r.height
|
||||||
|
@@ -18,6 +18,15 @@
|
|||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// need this to be able to use CPPUNIT_ASSERT_EQUAL with wxFileOffset objects
|
||||||
|
static std::ostream& operator<<(std::ostream& ostr, const wxFileOffset& fo)
|
||||||
|
{
|
||||||
|
ostr << fo;
|
||||||
|
return ostr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "wx/mstream.h"
|
#include "wx/mstream.h"
|
||||||
#include "wx/private/fileback.h"
|
#include "wx/private/fileback.h"
|
||||||
#include "bstream.h"
|
#include "bstream.h"
|
||||||
|
@@ -64,7 +64,7 @@ private:
|
|||||||
// create the test file with the given contents
|
// create the test file with the given contents
|
||||||
static void CreateTestFile(const char *contents)
|
static void CreateTestFile(const char *contents)
|
||||||
{
|
{
|
||||||
return CreateTestFile(strlen(contents), contents);
|
CreateTestFile(strlen(contents), contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the test file with the given contents (version must be used if
|
// create the test file with the given contents (version must be used if
|
||||||
|
Reference in New Issue
Block a user