summaryrefslogtreecommitdiff
path: root/sccomp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-29 08:58:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-29 15:12:26 +0100
commit41eeaace84b45c803fff3ebd5ab981f0ad09393b (patch)
tree0a0290bcc852507efa8241bd0853ebdd84ec9cbf /sccomp
parenta2f7678171618d958e3c387718cd389bea63eaeb (diff)
loplugin:oncevar
Change-Id: Iba892694acb378887a1d15ab59104c55f591f0bd Reviewed-on: https://gerrit.libreoffice.org/62498 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sccomp')
-rw-r--r--sccomp/qa/unit/SwarmSolverTest.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sccomp/qa/unit/SwarmSolverTest.cxx b/sccomp/qa/unit/SwarmSolverTest.cxx
index 6403de068a91..2f0e6d48104b 100644
--- a/sccomp/qa/unit/SwarmSolverTest.cxx
+++ b/sccomp/qa/unit/SwarmSolverTest.cxx
@@ -76,7 +76,7 @@ void SwarmSolverTest::testUnconstrained()
uno::Reference<table::XCell> xCell;
uno::Reference<sheet::XSolver> xSolver;
- OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
+ const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext),
uno::UNO_QUERY_THROW);
@@ -128,7 +128,7 @@ void SwarmSolverTest::testVariableBounded()
uno::Reference<table::XCell> xCell;
uno::Reference<sheet::XSolver> xSolver;
- OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
+ const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext),
uno::UNO_QUERY_THROW);
@@ -182,7 +182,7 @@ void SwarmSolverTest::testVariableConstrained()
uno::Reference<table::XCell> xCell;
uno::Reference<sheet::XSolver> xSolver;
- OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
+ const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext),
uno::UNO_QUERY_THROW);
@@ -240,7 +240,7 @@ void SwarmSolverTest::testTwoVariables()
uno::Reference<table::XCell> xCell;
uno::Reference<sheet::XSolver> xSolver;
- OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
+ const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext),
uno::UNO_QUERY_THROW);
@@ -305,7 +305,7 @@ void SwarmSolverTest::testMultipleVariables()
uno::Reference<table::XCell> xCell;
uno::Reference<sheet::XSolver> xSolver;
- OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
+ const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver");
xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext),
uno::UNO_QUERY_THROW);