Browse Source

Alter comment regarding sget and tidy ws

Signed-off-by: jamienoss <james.noss@lexisnexis.com>
jamienoss 10 years ago
parent
commit
3c71df1581
2 changed files with 3 additions and 3 deletions
  1. 1 1
      roxie/ccd/ccdcontext.cpp
  2. 2 2
      system/jlib/jstring.hpp

+ 1 - 1
roxie/ccd/ccdcontext.cpp

@@ -3575,7 +3575,7 @@ public:
         else
         {
             // predeployed queries with no workunit should return the querySet name
-            return strdup(querySetName.str()); // sget will return "" rather than NULL
+            return strdup(querySetName.str()); // StringAttr::str()  will return "" rather than NULL
         }
     }
     virtual char *getGroupName() { throwUnexpected(); }

+ 2 - 2
system/jlib/jstring.hpp

@@ -252,10 +252,10 @@ public:
     inline operator const char * () const       { return text; }
     inline void clear()                         { setown(NULL); }
     inline char * detach()                      { char * ret = text; text = NULL; return ret; }
-    inline const char * get() const         { return text; }
+    inline const char * get() const             { return text; }
     inline size32_t     length() const          { return text ? (size32_t)strlen(text) : 0; }
     inline bool isEmpty() const                 { return !text||!*text; } // faster than (length==0)
-    inline const char * str() const         { return text ? text : ""; } // safe form (doesn't return NULL)
+    inline const char * str() const             { return text ? text : ""; } // safe form (doesn't return NULL)
 
     void         set(const char * _text);
     void         setown(const char * _text);