Skip to content

Commit 2ada9ac

Browse files
committed
clean: adjust qisempty() for better readability
1 parent 2350068 commit 2ada9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qcstring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ inline char *qstrcpy( char *dst, const char *src )
6363
char *qstrncpy(char *dst,const char *src, size_t len);
6464

6565
inline bool qisempty( const char *s)
66-
{ return s==0 || *s==0; }
66+
{ return s==nullptr || *s=='\0'; }
6767

6868
inline int qstrcmp( const char *str1, const char *str2 )
6969
{ return (str1 && str2) ? strcmp(str1,str2) : // both non-empty

0 commit comments

Comments
 (0)