diff options
Diffstat (limited to 'src/variable.cpp')
-rw-r--r-- | src/variable.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/variable.cpp b/src/variable.cpp index 5296848..a3fb4a2 100644 --- a/src/variable.cpp +++ b/src/variable.cpp | |||
@@ -242,8 +242,15 @@ bool Variable::has( const Variable &vKey ) | |||
242 | { | 242 | { |
243 | if( eType == tDictionary ) | 243 | if( eType == tDictionary ) |
244 | return hValue->has( vKey ); | 244 | return hValue->has( vKey ); |
245 | // else if( eType == tList ) | 245 | else if( eType == tList ) |
246 | // return lValue->contains( vKey ); | 246 | { |
247 | for( VariableList::const_iterator i = lValue->begin(); i; i++ ) | ||
248 | { | ||
249 | if( (*i) == vKey ) | ||
250 | return true; | ||
251 | } | ||
252 | return false; | ||
253 | } | ||
247 | else | 254 | else |
248 | throw Bu::ExceptionBase("Insert on non-dictionary."); | 255 | throw Bu::ExceptionBase("Insert on non-dictionary."); |
249 | } | 256 | } |