From 93fa67c0e6124d2657488971800c8fd068dc0d0e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Jul 2003 22:53:23 +0000 Subject: [PATCH] GetPath() now has wxPATH_GET_COLUME by default git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/filename.tex | 5 +++-- include/wx/filename.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/latex/wx/filename.tex b/docs/latex/wx/filename.tex index 4db77cb30e..8b2e26f54d 100644 --- a/docs/latex/wx/filename.tex +++ b/docs/latex/wx/filename.tex @@ -378,7 +378,7 @@ Returns the name part of the filename. \membersection{wxFileName::GetPath}\label{wxfilenamegetpath} -\constfunc{wxString}{GetPath}{\param{int }{flags = $0$}, \param{wxPathFormat }{format = wxPATH\_NATIVE}} +\constfunc{wxString}{GetPath}{\param{int }{flags = {\tt wxPATH\_GET\_VOLUME}}, \param{wxPathFormat }{format = wxPATH\_NATIVE}} Returns the path part of the filename (without the name or extension). The possible flags values are: @@ -386,7 +386,8 @@ possible flags values are: \twocolwidtha{5cm} \begin{twocollist}\itemsep=0pt \twocolitem{{\bf wxPATH\_GET\_VOLUME}}{Return the path with the volume (does -nothing for the filename formats without volumes)} +nothing for the filename formats without volumes), otherwise the path without +volume part is returned.} \twocolitem{{\bf wxPATH\_GET\_SEPARATOR}}{Return the path with the trailing separator, if this flag is not given there will be no separator at the end of the path.} diff --git a/include/wx/filename.h b/include/wx/filename.h index 401162c336..13df3117b2 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -359,7 +359,8 @@ public: const wxArrayString& GetDirs() const { return m_dirs; } // flags are combination of wxPATH_GET_XXX flags - wxString GetPath(int flags = 0, wxPathFormat format = wxPATH_NATIVE) const; + wxString GetPath(int flags = wxPATH_GET_VOLUME, + wxPathFormat format = wxPATH_NATIVE) const; // Replace current path with this one void SetPath( const wxString &path, wxPathFormat format = wxPATH_NATIVE ); -- 2.45.2