From: Gilles Depeyrot Date: Mon, 6 Jan 2003 19:38:18 +0000 (+0000) Subject: corrected getting FSRef associated with the POSIX path in wxString X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/75633395579c4154980ed7cf3042ba0f35936120?ds=inline corrected getting FSRef associated with the POSIX path in wxString git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dirmac.cpp b/src/mac/carbon/dirmac.cpp index 17d9397abd..0f250ccd5e 100644 --- a/src/mac/carbon/dirmac.cpp +++ b/src/mac/carbon/dirmac.cpp @@ -121,7 +121,7 @@ wxDirData::wxDirData(const wxString& dirname) FSRef theRef; // get the FSRef associated with the POSIX path - err = FSPathMakeRef((const UInt8 *) m_dirname, &theRef, NULL); + err = FSPathMakeRef((const UInt8 *) m_dirname.c_str(), &theRef, NULL); FSGetVRefNum(&theRef, &(m_CPB.hFileInfo.ioVRefNum)); err = FSGetNodeID( &theRef , &m_dirId , &m_isDir ) ; diff --git a/src/mac/dirmac.cpp b/src/mac/dirmac.cpp index 17d9397abd..0f250ccd5e 100644 --- a/src/mac/dirmac.cpp +++ b/src/mac/dirmac.cpp @@ -121,7 +121,7 @@ wxDirData::wxDirData(const wxString& dirname) FSRef theRef; // get the FSRef associated with the POSIX path - err = FSPathMakeRef((const UInt8 *) m_dirname, &theRef, NULL); + err = FSPathMakeRef((const UInt8 *) m_dirname.c_str(), &theRef, NULL); FSGetVRefNum(&theRef, &(m_CPB.hFileInfo.ioVRefNum)); err = FSGetNodeID( &theRef , &m_dirId , &m_isDir ) ;