From 45cd6e1369fdaae355e8ed0ed8495c729183c7f1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 10 Dec 2020 19:27:06 +0000 Subject: Const test variables --- libdbpp/unittests/testMock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libdbpp/unittests/testMock.cpp b/libdbpp/unittests/testMock.cpp index 41c640d..362b984 100644 --- a/libdbpp/unittests/testMock.cpp +++ b/libdbpp/unittests/testMock.cpp @@ -14,13 +14,13 @@ BOOST_AUTO_TEST_CASE(noFactory) BOOST_AUTO_TEST_CASE(mockFactory) { - auto f = DB::MockDatabaseFactory::get("MockMock"); + const auto f = DB::MockDatabaseFactory::get("MockMock"); BOOST_REQUIRE(f); - auto m = f->create("", typeid(this).name(), {}); + const auto m = f->create("", typeid(this).name(), {}); BOOST_REQUIRE(m); - auto c = m->openConnection(); + const auto c = m->openConnection(); BOOST_REQUIRE(c); - auto & cr = *c; + const auto & cr = *c; BOOST_REQUIRE_EQUAL(typeid(MockDb), typeid(cr)); } -- cgit v1.2.3