X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/91b4bd63177025704dd39679a2a7c4198eeb7909..16c9a4258f33da3a3a6c14bec9d1b239f2c93edd:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 6e4fe199f6..99832bf995 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -359,7 +359,7 @@ void wxFileName::Assign(const wxString& fullpathOrig, _T("the path shouldn't contain file name nor extension") ); #else // !__WXDEBUG__ - SplitPath(fullname, NULL /* no path */, &name, &ext, format); + SplitPath(fullname, NULL /* no path */, &name, &ext, format); SplitPath(fullpath, &volume, &path, NULL, NULL, format); #endif // __WXDEBUG__/!__WXDEBUG__ @@ -732,7 +732,7 @@ bool wxFileName::Rmdir( const wxString &dir ) // path normalization // ---------------------------------------------------------------------------- -bool wxFileName::Normalize(wxPathNormalize flags, +bool wxFileName::Normalize(int flags, const wxString& cwd, wxPathFormat format) { @@ -1043,8 +1043,10 @@ wxString wxFileName::GetFullName() const return fullname; } -wxString wxFileName::GetPath( bool add_separator, wxPathFormat format ) const +wxString wxFileName::GetPath( bool, wxPathFormat format ) const { + // Should add_seperator parameter be used? + format = GetFormat( format ); wxString fullpath; @@ -1776,4 +1778,3 @@ void wxFileName::MacRegisterDefaultTypeAndCreator( const wxString& ext , wxUint3 gMacDefaultExtensions.Add( rec ) ; } #endif -