]> git.saurik.com Git - wxWidgets.git/commitdiff
Clarify that wxFileName::GetPath() appends separator for toplevel dirs.
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 10 May 2011 09:58:52 +0000 (09:58 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 10 May 2011 09:58:52 +0000 (09:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/filename.h

index 07c94f09971945b3dfb40e569ba5e22c199a1dfd..7bbd0cd527c181b594b43b9ce982ddf04788f407 100644 (file)
@@ -611,6 +611,10 @@ public:
         Don't include the trailing separator in the returned string. This is
         the default (the value of this flag is 0) and exists only for symmetry
         with wxPATH_GET_SEPARATOR.
         Don't include the trailing separator in the returned string. This is
         the default (the value of this flag is 0) and exists only for symmetry
         with wxPATH_GET_SEPARATOR.
+
+        @note If the path is a toplevel one (e.g. @c "/" on Unix or @c "C:\" on
+              Windows), then the returned path will contain trailing separator
+              even with @c wxPATH_NO_SEPARATOR.
     */
     wxString GetPath(int flags = wxPATH_GET_VOLUME,
                      wxPathFormat format = wxPATH_NATIVE) const;
     */
     wxString GetPath(int flags = wxPATH_GET_VOLUME,
                      wxPathFormat format = wxPATH_NATIVE) const;