Browse Source

Switch call to getPropBool instead of getPropInt!=0

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 years ago
parent
commit
70ebd931cd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dali/base/dadfs.cpp

+ 2 - 2
dali/base/dadfs.cpp

@@ -2628,8 +2628,8 @@ public:
                         exprefix, sub->queryLogicalName(), superFmt.str(),
                         queryLogicalName(), subFmt.str());
 #endif
-        bool superLocal = superProp.getPropInt("@local",0) != 0;
-        bool subLocal = subProp.getPropInt("@local",0) != 0;
+        bool superLocal = superProp.getPropBool("@local",false);
+        bool subLocal = subProp.getPropBool("@local",false);
         if (subLocal != superLocal)
             throw MakeStringException(-1,"%s: %s's local setting (%s) is different than %s's (%s)",
                     exprefix, sub->queryLogicalName(), (subLocal?"local":"global"),