diff options
Diffstat (limited to 'sccomp')
-rw-r--r-- | sccomp/source/solver/SolverComponent.cxx | 3 | ||||
-rw-r--r-- | sccomp/source/solver/SwarmSolver.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sccomp/source/solver/SolverComponent.cxx b/sccomp/source/solver/SolverComponent.cxx index fae79103967c..d279d8feceb4 100644 --- a/sccomp/source/solver/SolverComponent.cxx +++ b/sccomp/source/solver/SolverComponent.cxx @@ -46,8 +46,7 @@ using namespace com::sun::star; OUString SolverComponent::GetResourceString(const char* pId) { - static std::locale loc = Translate::Create("scc"); - return Translate::get(pId, loc); + return Translate::get(pId, Translate::Create("scc")); } size_t ScSolverCellHash::operator()( const css::table::CellAddress& rAddress ) const diff --git a/sccomp/source/solver/SwarmSolver.cxx b/sccomp/source/solver/SwarmSolver.cxx index eba55c87da2f..ba89367db54b 100644 --- a/sccomp/source/solver/SwarmSolver.cxx +++ b/sccomp/source/solver/SwarmSolver.cxx @@ -283,8 +283,7 @@ OUString SwarmSolver::getResourceString(const char* pId) if (!pId) return sString; - static std::locale aLocale = Translate::Create("scc"); - return Translate::get(pId, aLocale); + return Translate::get(pId, Translate::Create("scc")); } uno::Reference<table::XCell> SwarmSolver::getCell(const table::CellAddress& rPosition) |