diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-05-11 15:38:02 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-05-12 13:58:53 +0200 |
commit | 4145a857791df2100d5df9defb79e1160f89249f (patch) | |
tree | a6f762df254394a15e46634b5c71b63e84de8e4d /sc/source/ui/docshell/arealink.cxx | |
parent | aa0cd609d3f7eee02a5f05a93cba060bb82184d5 (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/[a-d]* for easier review.
Change-Id: If268fb87ab09ca430a5bdb5cdd53a233e9158bfe
Reviewed-on: https://gerrit.libreoffice.org/54134
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/docshell/arealink.cxx')
-rw-r--r-- | sc/source/ui/docshell/arealink.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx index c1def55db4d3..acdc09144a42 100644 --- a/sc/source/ui/docshell/arealink.cxx +++ b/sc/source/ui/docshell/arealink.cxx @@ -34,6 +34,7 @@ #include <dbdata.hxx> #include <undoblk.hxx> #include <globstr.hrc> +#include <scresid.hxx> #include <markdata.hxx> #include <hints.hxx> #include <filter.hxx> @@ -404,7 +405,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter, } else { - OUString aErr = ScGlobal::GetRscString(STR_LINKERROR); + OUString aErr = ScResId(STR_LINKERROR); rDoc.SetString( aDestPos.Col(), aDestPos.Row(), aDestPos.Tab(), aErr ); } @@ -466,7 +467,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter, vcl::Window* pWin = Application::GetDefDialogParent(); std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr, VclMessageType::Info, VclButtonsType::Ok, - ScGlobal::GetRscString(STR_MSSG_DOSUBTOTALS_2))); + ScResId(STR_MSSG_DOSUBTOTALS_2))); xInfoBox->run(); } |