Skip to content

Commit

Permalink
FwdSqlQuery: Use static assert instead of runtime DEBUG_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jul 20, 2021
1 parent 7b23500 commit 1005e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/db/fwdsqlquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ inline bool boolFromQVariantInt(const QVariant& variant) {
<< value;
}
// C-style conversion from int to bool
DEBUG_ASSERT(kBooleanFalse == 0);
static_assert(kBooleanFalse == 0);
return value != kBooleanFalse;
}

Expand Down

0 comments on commit 1005e8e

Please sign in to comment.