diff --git a/src/libs/sqlite/sqlitebasestatement.h b/src/libs/sqlite/sqlitebasestatement.h index e8e9026dae3..4966ee38450 100644 --- a/src/libs/sqlite/sqlitebasestatement.h +++ b/src/libs/sqlite/sqlitebasestatement.h @@ -213,7 +213,7 @@ public: auto value(const QueryTypes &...queryValues) { Resetter resetter{this}; - ResultType resultValue; + ResultType resultValue{}; bindValues(queryValues...); diff --git a/tests/unit/unittest/sqlitestatement-test.cpp b/tests/unit/unittest/sqlitestatement-test.cpp index 3804f8b31ed..fb25c9de4d7 100644 --- a/tests/unit/unittest/sqlitestatement-test.cpp +++ b/tests/unit/unittest/sqlitestatement-test.cpp @@ -1474,7 +1474,6 @@ TEST_F(SqliteStatement, ReadStatementOptionalValueWithTransactions) TEST_F(SqliteStatement, ReadStatementReadCallbackWithTransactions) { - using Tuple = std::tuple; MockFunction callbackMock; ReadStatement<3> statement("SELECT name, number, value FROM test WHERE name=? AND number=?", database); @@ -1541,7 +1540,6 @@ TEST_F(SqliteStatement, ReadWriteStatementOptionalValueWithTransactions) TEST_F(SqliteStatement, ReadWriteStatementReadCallbackWithTransactions) { - using Tuple = std::tuple; MockFunction callbackMock; ReadWriteStatement<3> statement( "SELECT name, number, value FROM test WHERE name=? AND number=?", database);