2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[2377] style fix: don't use result of x&y as a boolean directly

This commit is contained in:
JINMEI Tatuya
2012-12-06 19:31:40 -08:00
parent 9ea3182d49
commit 2f3467a4ea

View File

@@ -119,7 +119,7 @@ public:
// Good, we loaded another one // Good, we loaded another one
++count; ++count;
} else if (!(options_ & MANY_ERRORS)) { } else if ((options_ & MANY_ERRORS) == 0) {
return (true); return (true);
} }
} catch (const isc::Exception& e) { } catch (const isc::Exception& e) {
@@ -127,7 +127,7 @@ public:
callbacks_.error(lexer_.getSourceName(), callbacks_.error(lexer_.getSourceName(),
lexer_.getSourceLine(), lexer_.getSourceLine(),
e.what()); e.what());
if (options_ & MANY_ERRORS) { if ((options_ & MANY_ERRORS) != 0) {
// We want to continue. Try to read until the end of line // We want to continue. Try to read until the end of line
bool end = false; bool end = false;
do { do {