summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg/namedlg.cxx
diff options
context:
space:
mode:
authorGabor Kelemen <kelemeng@ubuntu.com>2018-05-11 15:58:09 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-05-12 13:43:11 +0200
commitaa0cd609d3f7eee02a5f05a93cba060bb82184d5 (patch)
tree61ede7fce441d2020b8e1da855c84a9b7d8be610 /sc/source/ui/namedlg/namedlg.cxx
parent2bc1758239dc3e76ef604fccf9d1c58eeba967e5 (diff)
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 <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/namedlg/namedlg.cxx')
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index c6c404f36c22..f25f9582f267 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -23,6 +23,7 @@
#include <document.hxx>
#include <docfunc.hxx>
#include <globstr.hrc>
+#include <scresid.hxx>
#include <namedlg.hxx>
#include <viewdata.hxx>
#include <tabvwsh.hxx>
@@ -46,10 +47,10 @@ ScNameDlg::ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent
std::map<OUString, std::unique_ptr<ScRangeName>> *const pRangeMap)
: ScAnyRefDlg(pB, pCW, pParent, "ManageNamesDialog", "modules/scalc/ui/managenamesdialog.ui")
- , maGlobalNameStr(ScGlobal::GetRscString(STR_GLOBAL_SCOPE))
- , maErrInvalidNameStr(ScGlobal::GetRscString(STR_ERR_NAME_INVALID))
- , maErrNameInUse(ScGlobal::GetRscString(STR_ERR_NAME_EXISTS))
- , maStrMultiSelect(ScGlobal::GetRscString(STR_MULTI_SELECT))
+ , maGlobalNameStr(ScResId(STR_GLOBAL_SCOPE))
+ , maErrInvalidNameStr(ScResId(STR_ERR_NAME_INVALID))
+ , maErrNameInUse(ScResId(STR_ERR_NAME_EXISTS))
+ , maStrMultiSelect(ScResId(STR_MULTI_SELECT))
, mpViewData(ptrViewData)
, mpDoc(ptrViewData->GetDocument())