diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-09-22 00:11:42 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-09-22 00:12:01 +0200 |
commit | 8a6c210f25c97c0acd3a75458182db8391a3c9c0 (patch) | |
tree | 3dd600120d2173d8a3a2581e61889922de94b666 | |
parent | f00bc527286058097dd043f6a52ed32122a574b4 (diff) |
FwdSqlQuery: Rename conversion function
-rw-r--r-- | src/util/db/fwdsqlquery.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/db/fwdsqlquery.cpp b/src/util/db/fwdsqlquery.cpp index 7d82dc5add..d11b5327e9 100644 --- a/src/util/db/fwdsqlquery.cpp +++ b/src/util/db/fwdsqlquery.cpp @@ -105,7 +105,7 @@ constexpr int kBooleanTrue = 1; // Please do not try to unwrap the code! It is already declared "inline" ;) // // Recommended reading: "Refactoring" by Martin Fowler -inline bool toBoolean(const QVariant& variant) { +inline bool boolFromQVariantInt(const QVariant& variant) { bool ok = false; int value = variant.toInt(&ok); VERIFY_OR_DEBUG_ASSERT(ok) { @@ -128,5 +128,5 @@ inline bool toBoolean(const QVariant& variant) { } // anonymous namespace bool FwdSqlQuery::fieldValueBoolean(DbFieldIndex fieldIndex) const { - return toBoolean(fieldValue(fieldIndex)); + return boolFromQVariantInt(fieldValue(fieldIndex)); } |