Loading qtools/qcstring.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -431,7 +431,7 @@ public: StringRep(int size) StringRep(int size) { { u.s.isShort = size<=SHORT_STR_CAPACITY; u.s.isShort = size<=SHORT_STR_CAPACITY; if (u.s.isShort) // init short string if (size<=SHORT_STR_CAPACITY) // init short string { { if (size>0) if (size>0) { { Loading @@ -453,8 +453,8 @@ public: if (str) if (str) { { int len = strlen(str); int len = strlen(str); u.s.isShort = len<=SHORT_STR_MAX_LEN; u.s.isShort = len<SHORT_STR_CAPACITY; if (u.s.isShort) if (len<SHORT_STR_CAPACITY) { { u.s.len = len; u.s.len = len; memcpy(u.s.str,str,len+1); memcpy(u.s.str,str,len+1); Loading Loading @@ -527,7 +527,7 @@ public: { { int len = strlen(str); int len = strlen(str); u.s.isShort = len<=SHORT_STR_MAX_LEN; u.s.isShort = len<=SHORT_STR_MAX_LEN; if (u.s.isShort) if (len<SHORT_STR_CAPACITY) { { u.s.len = len; u.s.len = len; memcpy(u.s.str,str,len+1); memcpy(u.s.str,str,len+1); Loading Loading
qtools/qcstring.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -431,7 +431,7 @@ public: StringRep(int size) StringRep(int size) { { u.s.isShort = size<=SHORT_STR_CAPACITY; u.s.isShort = size<=SHORT_STR_CAPACITY; if (u.s.isShort) // init short string if (size<=SHORT_STR_CAPACITY) // init short string { { if (size>0) if (size>0) { { Loading @@ -453,8 +453,8 @@ public: if (str) if (str) { { int len = strlen(str); int len = strlen(str); u.s.isShort = len<=SHORT_STR_MAX_LEN; u.s.isShort = len<SHORT_STR_CAPACITY; if (u.s.isShort) if (len<SHORT_STR_CAPACITY) { { u.s.len = len; u.s.len = len; memcpy(u.s.str,str,len+1); memcpy(u.s.str,str,len+1); Loading Loading @@ -527,7 +527,7 @@ public: { { int len = strlen(str); int len = strlen(str); u.s.isShort = len<=SHORT_STR_MAX_LEN; u.s.isShort = len<=SHORT_STR_MAX_LEN; if (u.s.isShort) if (len<SHORT_STR_CAPACITY) { { u.s.len = len; u.s.len = len; memcpy(u.s.str,str,len+1); memcpy(u.s.str,str,len+1); Loading