From aa0cd609d3f7eee02a5f05a93cba060bb82184d5 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Fri, 11 May 2018 15:58:09 +0200 Subject: Replace ScGlobal::GetRscString with simple ScResId calls After the gettext migration there is no point to have two APIs for reading the same .mo file. This patch is for sc/source/ui/[m-u]* for easier review. Change-Id: I326902a89b8c65e32a42c3ebb55bea3609d32db6 Reviewed-on: https://gerrit.libreoffice.org/54136 Tested-by: Jenkins Reviewed-by: Julien Nabet --- sc/source/ui/miscdlgs/optsolver.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/miscdlgs/optsolver.cxx') diff --git a/sc/source/ui/miscdlgs/optsolver.cxx b/sc/source/ui/miscdlgs/optsolver.cxx index 2faf061518b5..479262509a71 100644 --- a/sc/source/ui/miscdlgs/optsolver.cxx +++ b/sc/source/ui/miscdlgs/optsolver.cxx @@ -37,6 +37,7 @@ #include #include #include +#include #include @@ -179,8 +180,8 @@ ScOptSolverDlg::ScOptSolverDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Windo ScDocShell* pDocSh, const ScAddress& aCursorPos ) : ScAnyRefDlg(pB, pCW, pParent, "SolverDialog", "modules/scalc/ui/solverdlg.ui") - , maInputError(ScGlobal::GetRscString(STR_INVALIDINPUT)) - , maConditionError(ScGlobal::GetRscString(STR_INVALIDCONDITION)) + , maInputError(ScResId(STR_INVALIDINPUT)) + , maConditionError(ScResId(STR_INVALIDCONDITION)) , mpDocShell(pDocSh) , mrDoc(pDocSh->GetDocument()) -- cgit