diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 12:54:01 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 10:43:56 +0100 |
commit | 02d65d7a19981d342d9ef3996b296b4efda905a4 (patch) | |
tree | 159c522f783bb13f39a12b57379bed0ec4bff85e /dbaccess/qa | |
parent | 39821e7d24deffa72bd9254414d4b58f22be2fca (diff) |
tdf#123936 Formatting files in module dbaccess with clang-format
Change-Id: I7056dc36b68021bdf16cc6c496645a2797958ab8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105660
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/extras/macros-test.cxx | 6 | ||||
-rw-r--r-- | dbaccess/qa/unit/hsqldb.cxx | 9 |
2 files changed, 5 insertions, 10 deletions
diff --git a/dbaccess/qa/extras/macros-test.cxx b/dbaccess/qa/extras/macros-test.cxx index dbc6488db051..5d65133664b3 100644 --- a/dbaccess/qa/extras/macros-test.cxx +++ b/dbaccess/qa/extras/macros-test.cxx @@ -25,12 +25,10 @@ public: CPPUNIT_TEST_SUITE(DBAccessTest); CPPUNIT_TEST(test); CPPUNIT_TEST_SUITE_END(); - }; - DBAccessTest::DBAccessTest() - : UnoApiTest("/dbaccess/qa/extras/testdocuments") + : UnoApiTest("/dbaccess/qa/extras/testdocuments") { } @@ -38,7 +36,7 @@ void DBAccessTest::test() { OUString aFileName; createFileURL("testdb.odb", aFileName); - uno::Reference< lang::XComponent > xComponent = loadFromDesktop(aFileName); + uno::Reference<lang::XComponent> xComponent = loadFromDesktop(aFileName); CPPUNIT_ASSERT(xComponent.is()); xComponent->dispose(); } diff --git a/dbaccess/qa/unit/hsqldb.cxx b/dbaccess/qa/unit/hsqldb.cxx index e9b0b6bbf9f3..0e3c2494bc5b 100644 --- a/dbaccess/qa/unit/hsqldb.cxx +++ b/dbaccess/qa/unit/hsqldb.cxx @@ -16,8 +16,7 @@ using namespace ::com::sun::star::sdb; using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::uno; -class HSQLDBTest - : public DBTestBase +class HSQLDBTest : public DBTestBase { public: void testEmptyDBConnection(); @@ -34,13 +33,11 @@ public: void HSQLDBTest::testEmptyDBConnection() { auto const file = createTempCopy("hsqldb_empty.odb"); - uno::Reference< XOfficeDatabaseDocument > xDocument = - getDocumentForUrl(file.GetURL()); + uno::Reference<XOfficeDatabaseDocument> xDocument = getDocumentForUrl(file.GetURL()); getConnectionForDocument(xDocument); - css::uno::Reference<css::lang::XComponent>( - xDocument, css::uno::UNO_QUERY_THROW)->dispose(); + css::uno::Reference<css::lang::XComponent>(xDocument, css::uno::UNO_QUERY_THROW)->dispose(); } CPPUNIT_TEST_SUITE_REGISTRATION(HSQLDBTest); |