CVirtualDirectory: Resolve -Wreorder warnings
This commit is contained in:
parent
1ae5462cd7
commit
e8a20933de
|
@ -5,17 +5,17 @@
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
CVirtualDirectory::CVirtualDirectory(CResourceStore *pStore)
|
CVirtualDirectory::CVirtualDirectory(CResourceStore *pStore)
|
||||||
: mpParent(nullptr), mpStore(pStore)
|
: mpStore(pStore)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
CVirtualDirectory::CVirtualDirectory(const TString& rkName, CResourceStore *pStore)
|
CVirtualDirectory::CVirtualDirectory(const TString& rkName, CResourceStore *pStore)
|
||||||
: mpParent(nullptr), mName(rkName), mpStore(pStore)
|
: mpStore(pStore), mName(rkName)
|
||||||
{
|
{
|
||||||
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
|
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
CVirtualDirectory::CVirtualDirectory(CVirtualDirectory *pParent, const TString& rkName, CResourceStore *pStore)
|
CVirtualDirectory::CVirtualDirectory(CVirtualDirectory *pParent, const TString& rkName, CResourceStore *pStore)
|
||||||
: mpParent(pParent), mName(rkName), mpStore(pStore)
|
: mpParent(pParent), mpStore(pStore), mName(rkName)
|
||||||
{
|
{
|
||||||
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
|
ASSERT(!mName.IsEmpty() && FileUtil::IsValidName(mName, true));
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ class CResourceStore;
|
||||||
|
|
||||||
class CVirtualDirectory
|
class CVirtualDirectory
|
||||||
{
|
{
|
||||||
CVirtualDirectory *mpParent;
|
CVirtualDirectory *mpParent = nullptr;
|
||||||
CResourceStore *mpStore;
|
CResourceStore *mpStore;
|
||||||
TString mName;
|
TString mName;
|
||||||
std::vector<CVirtualDirectory*> mSubdirectories;
|
std::vector<CVirtualDirectory*> mSubdirectories;
|
||||||
|
|
Loading…
Reference in New Issue