diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-26 17:32:12 -0800 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-26 17:32:12 -0800 |
commit | 03dbeb6f4da302f4c5f118c4d848b744495a7445 (patch) | |
tree | dcb48cc71d6f084d56742c205dc011e6b543f53e /indra | |
parent | ecef40c09892b727b0e1800787b668a9ab2a44b9 (diff) |
CID-400
Checker: UNINIT_CTOR
Function: LLDirPicker::LLDirPicker()
File: /indra/newview/lldirpicker.cpp
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lldirpicker.cpp | 14 | ||||
-rw-r--r-- | indra/newview/lldirpicker.h | 2 |
2 files changed, 11 insertions, 5 deletions
diff --git a/indra/newview/lldirpicker.cpp b/indra/newview/lldirpicker.cpp index a720dc46b5..d1abbb0f51 100644 --- a/indra/newview/lldirpicker.cpp +++ b/indra/newview/lldirpicker.cpp @@ -61,7 +61,9 @@ LLDirPicker LLDirPicker::sInstance; // #if LL_WINDOWS -LLDirPicker::LLDirPicker() +LLDirPicker::LLDirPicker() : + mFileName(NULL), + mLocked(false) { } @@ -125,7 +127,9 @@ std::string LLDirPicker::getDirName() /////////////////////////////////////////////DARWIN #elif LL_DARWIN -LLDirPicker::LLDirPicker() +LLDirPicker::LLDirPicker() : + mFileName(NULL), + mLocked(false) { reset(); @@ -262,13 +266,15 @@ std::string LLDirPicker::getDirName() void LLDirPicker::reset() { - mLocked = FALSE; + mLocked = false; mDir.clear(); } #elif LL_LINUX || LL_SOLARIS -LLDirPicker::LLDirPicker() +LLDirPicker::LLDirPicker() : + mFileName(NULL), + mLocked(false) { mFilePicker = new LLFilePicker(); reset(); diff --git a/indra/newview/lldirpicker.h b/indra/newview/lldirpicker.h index 26f76915ae..b48d2c66c4 100644 --- a/indra/newview/lldirpicker.h +++ b/indra/newview/lldirpicker.h @@ -97,7 +97,7 @@ private: std::string* mFileName; std::string mDir; - BOOL mLocked; + bool mLocked; static LLDirPicker sInstance; |