sccomp/qa/unit/SwarmSolverTest.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
New commits: commit 5bc4d69007cfb715ea16e616c2fc5b90adc2f289 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Jun 4 21:23:11 2020 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Fri Jun 5 08:16:58 2020 +0200 Upcoming loplugin:elidestringvar: sccomp Change-Id: I324c04f94ec5532e0a49d6f25a82121ad8baa439 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95538 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> 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<sheet::XSpreadsheet> xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSolver> 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<sheet::XSpreadsheet> xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSolver> 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<sheet::XSpreadsheet> xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSolver> 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<sheet::XSpreadsheet> xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSolver> 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<sheet::XSpreadsheet> xSheet(xIndex->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSolver> 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<beans::XPropertySet> xPropSet(xSolver, uno::UNO_QUERY_THROW); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
