simplify util::isnil implementation
doh!
This commit is contained in:
parent
25d7af449e
commit
2edaae5c5b
1 changed files with 1 additions and 2 deletions
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
|
|
@ -84,7 +83,7 @@ namespace util {
|
|||
inline bool
|
||||
isnil (const char* pCStr)
|
||||
{
|
||||
return !pCStr || 0 == std::strlen(pCStr);
|
||||
return !pCStr || !(*pCStr);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue