Преглед изворни кода

HPCC-12561 Also speed up boolean xml reading

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday пре 10 година
родитељ
комит
aff05ad921
1 измењених фајлова са 1 додато и 7 уклоњено
  1. 1 7
      common/thorhelper/thorxmlread.cpp

+ 1 - 7
common/thorhelper/thorxmlread.cpp

@@ -1447,13 +1447,7 @@ public:
 
         const char *str = queryProp(path);
         if (!str) return _default;
-
-        CriticalBlock b(crit);
-        cnv2Latin1((size32_t)strlen(str), str, sharedResult.clear());
-
-        size32_t resultLen = sharedResult.length();
-        const char * resultText = (const char *)sharedResult.toByteArray();
-        return strToBool(resultLen, resultText);
+        return strToBool(str);
     }
     virtual __int64 readInt(const char * path, __int64 _default)
     {