diff options
Diffstat (limited to 'sccomp')
-rw-r--r-- | sccomp/source/solver/CoinMPSolver.cxx | 4 | ||||
-rw-r--r-- | sccomp/source/solver/LpsolveSolver.cxx | 4 | ||||
-rw-r--r-- | sccomp/source/solver/SwarmSolver.cxx | 6 |
3 files changed, 14 insertions, 0 deletions
diff --git a/sccomp/source/solver/CoinMPSolver.cxx b/sccomp/source/solver/CoinMPSolver.cxx index 41d3601b114e..bd12c85c4fc4 100644 --- a/sccomp/source/solver/CoinMPSolver.cxx +++ b/sccomp/source/solver/CoinMPSolver.cxx @@ -35,6 +35,8 @@ namespace com::sun::star::uno { class XComponentContext; } using namespace com::sun::star; +namespace { + class CoinMPSolver : public SolverComponent { public: @@ -52,6 +54,8 @@ private: } }; +} + void SAL_CALL CoinMPSolver::solve() { uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW ); diff --git a/sccomp/source/solver/LpsolveSolver.cxx b/sccomp/source/solver/LpsolveSolver.cxx index 01f4bfba2bb1..e53c685555d8 100644 --- a/sccomp/source/solver/LpsolveSolver.cxx +++ b/sccomp/source/solver/LpsolveSolver.cxx @@ -64,6 +64,8 @@ namespace com::sun::star::uno { class XComponentContext; } using namespace com::sun::star; +namespace { + class LpsolveSolver : public SolverComponent { public: @@ -81,6 +83,8 @@ private: } }; +} + void SAL_CALL LpsolveSolver::solve() { uno::Reference<frame::XModel> xModel( mxDoc, uno::UNO_QUERY_THROW ); diff --git a/sccomp/source/solver/SwarmSolver.cxx b/sccomp/source/solver/SwarmSolver.cxx index c15745cf7eee..a3f2bbec518a 100644 --- a/sccomp/source/solver/SwarmSolver.cxx +++ b/sccomp/source/solver/SwarmSolver.cxx @@ -99,6 +99,8 @@ enum typedef cppu::WeakImplHelper<sheet::XSolver, sheet::XSolverDescription, lang::XServiceInfo> SwarmSolver_Base; +namespace +{ class SwarmSolver : public comphelper::OMutexAndBroadcastHelper, public comphelper::OPropertyContainer, public comphelper::OPropertyArrayUsageHelper<SwarmSolver>, @@ -278,6 +280,7 @@ public: double clampVariable(size_t nVarIndex, double fValue); double boundVariable(size_t nVarIndex, double fValue); }; +} OUString SwarmSolver::getResourceString(const char* pId) { @@ -448,6 +451,8 @@ bool SwarmSolver::doesViolateConstraints() return false; } +namespace +{ template <typename SwarmAlgorithm> class SwarmRunner { private: @@ -494,6 +499,7 @@ public: return mrAlgorithm.getResult(); } }; +} void SAL_CALL SwarmSolver::solve() { |