]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix unit tests compilation in STL build.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Jul 2012 23:50:52 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Jul 2012 23:50:52 +0000 (23:50 +0000)
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

tests/filename/filenametest.cpp

index addf9ad49ff9e024930379c7959aa9020afac24f..638434bc56eb08b5232d17ea40b7778dc044ffa1 100644 (file)
@@ -709,7 +709,7 @@ void FileNameTestCase::TestIsSame()
     tn = tempnam(NULL, "wxfn2");
     const wxString tempdir2 = wxString::From8BitData(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 );