fixed m_relative initialization in wxFileName default ctor and Clear() (patch 597736)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-08-20 13:28:51 +00:00
parent b3e51e0f0f
commit fb96947585
2 changed files with 5 additions and 1 deletions

View 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

View 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 */