From 5bc4d69007cfb715ea16e616c2fc5b90adc2f289 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 4 Jun 2020 21:23:11 +0200 Subject: Upcoming loplugin:elidestringvar: sccomp Change-Id: I324c04f94ec5532e0a49d6f25a82121ad8baa439 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95538 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sccomp/qa/unit/SwarmSolverTest.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sccomp') diff --git a/sccomp/qa/unit/SwarmSolverTest.cxx b/sccomp/qa/unit/SwarmSolverTest.cxx index a92eb0b65d49..7b424cabbd56 100644 --- a/sccomp/qa/unit/SwarmSolverTest.cxx +++ b/sccomp/qa/unit/SwarmSolverTest.cxx @@ -67,9 +67,9 @@ void SwarmSolverTest::testUnconstrained() uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference xSolver; - const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver"); - xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext), + xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.Calc.SwarmSolver", m_xContext), uno::UNO_QUERY_THROW); table::CellAddress aObjective(0, 1, 1); @@ -117,9 +117,9 @@ void SwarmSolverTest::testVariableBounded() uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference xSolver; - const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver"); - xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext), + xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.Calc.SwarmSolver", m_xContext), uno::UNO_QUERY_THROW); table::CellAddress aObjective(0, 1, 1); @@ -169,9 +169,9 @@ void SwarmSolverTest::testVariableConstrained() uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference xSolver; - const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver"); - xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext), + xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.Calc.SwarmSolver", m_xContext), uno::UNO_QUERY_THROW); table::CellAddress aObjective(0, 1, 1); @@ -225,9 +225,9 @@ void SwarmSolverTest::testTwoVariables() uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference xSolver; - const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver"); - xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext), + xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.Calc.SwarmSolver", m_xContext), uno::UNO_QUERY_THROW); table::CellAddress aObjective(0, 1, 5); @@ -288,9 +288,9 @@ void SwarmSolverTest::testMultipleVariables() uno::Reference xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference xSolver; - const OUString sSolverName("com.sun.star.comp.Calc.SwarmSolver"); - xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext(sSolverName, m_xContext), + xSolver.set(m_xContext->getServiceManager()->createInstanceWithContext( + "com.sun.star.comp.Calc.SwarmSolver", m_xContext), uno::UNO_QUERY_THROW); uno::Reference xPropSet(xSolver, uno::UNO_QUERY_THROW); -- cgit