diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 09:36:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-03 10:29:57 +0200 |
commit | 101a9b4a3fcf1fd0a7163dac3a5dcd69431f4fee (patch) | |
tree | 29039a491e9ca058bd3ea9114bf8889ce8089ebc /sw/qa/uibase | |
parent | 55220e7bc6576a7575c675ba425e757a3aefa243 (diff) |
loplugin:constantparam
Change-Id: I9cdd15185cfa8347a08402da956eab7cbdd63de6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91609
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/uibase')
-rw-r--r-- | sw/qa/uibase/shells/shells.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/qa/uibase/shells/shells.cxx b/sw/qa/uibase/shells/shells.cxx index ee39b563cfc9..c1012d6af1d1 100644 --- a/sw/qa/uibase/shells/shells.cxx +++ b/sw/qa/uibase/shells/shells.cxx @@ -26,21 +26,16 @@ #include <IDocumentDrawModelAccess.hxx> #include <drawdoc.hxx> -static char const DATA_DIRECTORY[] = "/sw/qa/uibase/shells/data/"; - /// Covers sw/source/uibase/shells/ fixes. class SwUibaseShellsTest : public SwModelTestBase { public: - SwDoc* createDoc(const char* pName = nullptr); + SwDoc* createDoc(); }; -SwDoc* SwUibaseShellsTest::createDoc(const char* pName) +SwDoc* SwUibaseShellsTest::createDoc() { - if (!pName) - loadURL("private:factory/swriter", nullptr); - else - load(DATA_DIRECTORY, pName); + loadURL("private:factory/swriter", nullptr); SwXTextDocument* pTextDoc = dynamic_cast<SwXTextDocument*>(mxComponent.get()); CPPUNIT_ASSERT(pTextDoc); |