diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-02 18:35:23 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-06-02 18:35:23 +0300 |
commit | dda7df4ac94d1e269aa0ce9eff6c6078f756cbd9 (patch) | |
tree | 54053e64f71f818b7ab7085564e5456efd54625d /indra/newview/llwlparammanager.cpp | |
parent | 4b348d00653b75ea6350ab72c50a5ddba561d11f (diff) |
STORM-1253 WIP Debugging stuff.
Diffstat (limited to 'indra/newview/llwlparammanager.cpp')
-rw-r--r-- | indra/newview/llwlparammanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llwlparammanager.cpp b/indra/newview/llwlparammanager.cpp index 83d9ef6fde..5980410e64 100644 --- a/indra/newview/llwlparammanager.cpp +++ b/indra/newview/llwlparammanager.cpp @@ -678,6 +678,8 @@ bool LLWLParamManager::addParamSet(const LLWLParamKey& key, LLWLParamSet& param) std::map<LLWLParamKey, LLWLParamSet>::iterator mIt = mParamList.find(key); if(mIt == mParamList.end()) { + llassert(!key.name.empty()); + // *TODO: validate params mParamList[key] = param; return true; } @@ -691,6 +693,8 @@ BOOL LLWLParamManager::addParamSet(const LLWLParamKey& key, LLSD const & param) std::map<LLWLParamKey, LLWLParamSet>::const_iterator finder = mParamList.find(key); if(finder == mParamList.end()) { + llassert(!key.name.empty()); + // *TODO: validate params mParamList[key].setAll(param); return TRUE; } @@ -716,6 +720,8 @@ bool LLWLParamManager::getParamSet(const LLWLParamKey& key, LLWLParamSet& param) bool LLWLParamManager::setParamSet(const LLWLParamKey& key, LLWLParamSet& param) { + llassert(!key.name.empty()); + // *TODO: validate params mParamList[key] = param; return true; @@ -723,6 +729,9 @@ bool LLWLParamManager::setParamSet(const LLWLParamKey& key, LLWLParamSet& param) bool LLWLParamManager::setParamSet(const LLWLParamKey& key, const LLSD & param) { + llassert(!key.name.empty()); + // *TODO: validate params + // quick, non robust (we won't be working with files, but assets) check // this might not actually be true anymore.... if(!param.isMap()) |