diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-05-11 16:26:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-05-12 13:59:39 +0200 |
commit | 9356e0efb188258504b2073ffc8b388d566226e3 (patch) | |
tree | b5e45bcbd9de71c3c24b84febc10c466d01976d2 /sc/source/ui/view/cellsh2.cxx | |
parent | 4145a857791df2100d5df9defb79e1160f89249f (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/view/ for easier review.
Change-Id: Ic07f7e924236d29f3cafd69c5ee634ae92105459
Reviewed-on: https://gerrit.libreoffice.org/54137
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/view/cellsh2.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index 63225e8e9b92..8d6c3955f4da 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -41,6 +41,7 @@ #include <tabvwsh.hxx> #include <sc.hrc> #include <globstr.hrc> +#include <scresid.hxx> #include <global.hxx> #include <globalnames.hxx> #include <scmod.hxx> @@ -1014,7 +1015,7 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) ScDocShell* pDocSh = pData->GetDocShell(); OSL_ENSURE( pDocSh, "ScCellShell::ExecuteDB: SID_TEXT_TO_COLUMNS - pDocSh is null!" ); - OUString aUndo = ScGlobal::GetRscString( STR_UNDO_TEXTTOCOLUMNS ); + OUString aUndo = ScResId( STR_UNDO_TEXTTOCOLUMNS ); pDocSh->GetUndoManager()->EnterListAction( aUndo, aUndo, 0, pData->GetViewShell()->GetViewShellId() ); ScImportExport aImport( pDoc, aRange.aStart ); |