From 101a9b4a3fcf1fd0a7163dac3a5dcd69431f4fee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Apr 2020 09:36:41 +0200 Subject: loplugin:constantparam Change-Id: I9cdd15185cfa8347a08402da956eab7cbdd63de6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91609 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/qa/uibase/shells/shells.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'sw/qa/uibase') 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 #include -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(mxComponent.get()); CPPUNIT_ASSERT(pTextDoc); -- cgit v1.2.3