]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed m_relative initialization in wxFileName default ctor and Clear() (patch 597736)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Aug 2002 13:28:51 +0000 (13:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Aug 2002 13:28:51 +0000 (13:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filename.h
src/common/filename.cpp

index 4e5923d5d2b99c01f6d2bec32b12f847823e452b..64a48aa5edca0fd44031a7e3d2486a9d360c0138 100644 (file)
@@ -96,7 +96,7 @@ public:
     // constructors and assignment
 
         // the usual stuff
-    wxFileName() { }
+    wxFileName() { Clear(); }
     wxFileName( const wxFileName &filepath ) { Assign(filepath); }
 
         // from a full filename: if it terminates with a '/', a directory path
@@ -219,6 +219,7 @@ public:
     // looks up the appropriate type and creator from the registration and then sets
     bool MacSetDefaultTypeAndCreator() ;
 #endif
+
     // various file/dir operations
 
         // retrieve the value of the current working directory
index 7ca4edd295680817350dca0b4bd83af9f998e563..0e3653a6a3899fb2ca94aee12dc6d5bca4e611cb 100644 (file)
@@ -434,6 +434,9 @@ void wxFileName::Clear()
     m_volume =
     m_name =
     m_ext = wxEmptyString;
+
+    // we don't have any absolute path for now
+    m_relative = TRUE;
 }
 
 /* static */