diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-09-04 11:57:41 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2014-09-04 12:06:52 +0200 |
commit | 05b28c1ad8bc49a01804a5b6be18ca5ee5e5ef33 (patch) | |
tree | e28a1876baa7df0f59bc7ba80a7adc82c564ee54 /dbaccess/qa | |
parent | a7fbabdacdc08c36e6e395a89db11400daa56777 (diff) |
janitorial: add const, factorise constant
Change-Id: Ifdaff62611452ce1e39604bd751168fe3e68d865
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/extras/dialog-save.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/qa/extras/dialog-save.cxx b/dbaccess/qa/extras/dialog-save.cxx index 0d212c1a3ca1..542691989774 100644 --- a/dbaccess/qa/extras/dialog-save.cxx +++ b/dbaccess/qa/extras/dialog-save.cxx @@ -67,8 +67,8 @@ void DialogSaveTest::test() // be locked anyway: SolarMutexReleaser rel; - OUString aFileName; - aFileName = getURLFromWorkdir("CppunitTest/testDialogSave.odb"); + const OUString sStandard("Standard"); + const OUString aFileName(getURLFromWorkdir("CppunitTest/testDialogSave.odb")); { uno::Reference< lang::XComponent > xComponent = loadFromDesktop(aFileName); CPPUNIT_ASSERT(xComponent.is()); @@ -84,11 +84,11 @@ void DialogSaveTest::test() CPPUNIT_ASSERT(xStorDlgLib.is()); uno::Reference< script::XLibraryContainer > xDlgLib(xStorDlgLib, UNO_QUERY_THROW); CPPUNIT_ASSERT(xDlgLib.is()); - xBasLib->loadLibrary("Standard"); - CPPUNIT_ASSERT(xBasLib->isLibraryLoaded("Standard")); + xBasLib->loadLibrary(sStandard); + CPPUNIT_ASSERT(xBasLib->isLibraryLoaded(sStandard)); // the whole point of this test is to test the "save" operation // when the Basic library is loaded, but not the Dialog library - CPPUNIT_ASSERT(!xDlgLib->isLibraryLoaded("Standard")); + CPPUNIT_ASSERT(!xDlgLib->isLibraryLoaded(sStandard)); // make some change to enable a save // uno::Reference< document::XDocumentPropertiesSupplier > xDocPropSuppl(xComponent, UNO_QUERY_THROW); |