mirror of
https://github.com/gflags/gflags.git
synced 2025-04-04 21:15:05 +00:00
#40 Make boolean condition better readable
This commit is contained in:
parent
48e1a44dae
commit
cd1f401d45
1 changed files with 1 additions and 1 deletions
|
@ -1523,7 +1523,7 @@ const char* ProgramUsage() {
|
|||
static string version_string;
|
||||
|
||||
void SetVersionString(const string& version) {
|
||||
if (version_string.empty() == false)
|
||||
if (version_string.length() > 0)
|
||||
ReportError(DIE, "ERROR: SetVersionString() called twice\n");
|
||||
version_string = version;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue