From 75633395579c4154980ed7cf3042ba0f35936120 Mon Sep 17 00:00:00 2001 From: Gilles Depeyrot Date: Mon, 6 Jan 2003 19:38:18 +0000 Subject: [PATCH] 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 --- src/mac/carbon/dirmac.cpp | 2 +- src/mac/dirmac.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ) ; -- 2.45.2