Fix unit tests compilation in STL build.
Add missing c_str() calls forgotten by r70687. Closes #14472. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ab78328d2a
commit
fd78ef4715
@ -709,7 +709,7 @@ void FileNameTestCase::TestIsSame()
|
|||||||
tn = tempnam(NULL, "wxfn2");
|
tn = tempnam(NULL, "wxfn2");
|
||||||
const wxString tempdir2 = wxString::From8BitData(tn);
|
const wxString tempdir2 = wxString::From8BitData(tn);
|
||||||
free(tn);
|
free(tn);
|
||||||
CPPUNIT_ASSERT_EQUAL( 0, symlink(tempdir1, tempdir2) );
|
CPPUNIT_ASSERT_EQUAL( 0, symlink(tempdir1.c_str(), tempdir2.c_str()) );
|
||||||
wxON_BLOCK_EXIT1( wxRemoveFile, tempdir2 );
|
wxON_BLOCK_EXIT1( wxRemoveFile, tempdir2 );
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user