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:
@@ -96,7 +96,7 @@ public:
|
|||||||
// constructors and assignment
|
// constructors and assignment
|
||||||
|
|
||||||
// the usual stuff
|
// the usual stuff
|
||||||
wxFileName() { }
|
wxFileName() { Clear(); }
|
||||||
wxFileName( const wxFileName &filepath ) { Assign(filepath); }
|
wxFileName( const wxFileName &filepath ) { Assign(filepath); }
|
||||||
|
|
||||||
// from a full filename: if it terminates with a '/', a directory path
|
// 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
|
// looks up the appropriate type and creator from the registration and then sets
|
||||||
bool MacSetDefaultTypeAndCreator() ;
|
bool MacSetDefaultTypeAndCreator() ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// various file/dir operations
|
// various file/dir operations
|
||||||
|
|
||||||
// retrieve the value of the current working directory
|
// retrieve the value of the current working directory
|
||||||
|
@@ -434,6 +434,9 @@ void wxFileName::Clear()
|
|||||||
m_volume =
|
m_volume =
|
||||||
m_name =
|
m_name =
|
||||||
m_ext = wxEmptyString;
|
m_ext = wxEmptyString;
|
||||||
|
|
||||||
|
// we don't have any absolute path for now
|
||||||
|
m_relative = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
|
Reference in New Issue
Block a user