]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix tests compilation in STL build after r72707.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Oct 2012 14:48:50 +0000 (14:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Oct 2012 14:48:50 +0000 (14:48 +0000)
Add an explicit call to wxString::c_str() as there is no implicit conversion
in STL build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/filename/filenametest.cpp

index 510cc642485b047603378cbf4435e39aecbaaba8..393858d7d4026ac55268bf8b1b81ce4a6c2a31dd 100644 (file)
@@ -698,7 +698,7 @@ void FileNameTestCase::TestExists()
     CPPUNIT_ASSERT( wxFileName::Exists("/dev/log", wxFILE_EXISTS_SOCKET) );
 #endif // __LINUX__
     wxString fifo = dirTemp.GetPath() + "/fifo";
-    if (mkfifo(fifo, 0600) == 0)
+    if (mkfifo(fifo.c_str(), 0600) == 0)
     {
         wxON_BLOCK_EXIT1(wxRemoveFile, fifo);