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:
parent
b3e51e0f0f
commit
fb96947585
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user