浏览代码

HPCC-11922 Clean-up

- Remove commented out line and extra blank line
- Change Unimplemented exception for Unexpected
- Correct copyright date

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>
rpastrana 10 年之前
父节点
当前提交
04dadb627a
共有 3 个文件被更改,包括 2 次插入5 次删除
  1. 0 3
      common/thorhelper/thorxmlwrite.cpp
  2. 1 1
      common/thorhelper/thorxmlwrite.hpp
  3. 1 1
      esp/services/common/CMakeLists.txt

+ 0 - 3
common/thorhelper/thorxmlwrite.cpp

@@ -449,7 +449,6 @@ void CommonJsonWriter::outputNumericString(const char *field, const char *fieldn
     if ((flags & XWFopt) && (rtlTrimStrLen(len, field) == 0))
         return;
     checkDelimit();
-
     appendJSONStringValue(out, checkItemName(fieldname), len, field, true, false);
 }
 
@@ -460,7 +459,6 @@ void CommonJsonWriter::outputString(unsigned len, const char *field, const char
     if ((flags & XWFopt) && (rtlTrimStrLen(len, field) == 0))
         return;
     checkDelimit();
-
     appendJSONStringValue(out, checkItemName(fieldname), len, field, true);
 }
 
@@ -473,7 +471,6 @@ void CommonJsonWriter::outputQString(unsigned len, const char *field, const char
     else
         temp = (char *)tempBuffer.allocate(len);
     rtlQStrToStr(len, temp, len, field);
-    //outputString(len, temp, fieldname, isnumeric);
     outputString(len, temp, fieldname);
 }
 

+ 1 - 1
common/thorhelper/thorxmlwrite.hpp

@@ -85,7 +85,7 @@ public:
     virtual void rewindTo(unsigned int prevlen)
     {
         if (flusher)
-            UNIMPLEMENTED;
+            throwUnexpected();
 
         if (prevlen < out.length()) out.setLength(prevlen);
     }

+ 1 - 1
esp/services/common/CMakeLists.txt

@@ -1,5 +1,5 @@
 ################################################################################
-#    HPCC SYSTEMS software Copyright (C) 2014 HPCC Systems.
+#    HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
 #
 #    Licensed under the Apache License, Version 2.0 (the "License");
 #    you may not use this file except in compliance with the License.