فهرست منبع

Switch call to getPropBool instead of getPropInt!=0

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 13 سال پیش
والد
کامیت
70ebd931cd
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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"),