diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2018-05-10 20:44:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-11 14:00:23 +0200 |
commit | d9370a1406c3d6cf7ebdac5ea2f5a0069aba0814 (patch) | |
tree | 2cc6b197dcc5bfebe67859a8c524902b3a49d78c /sc/source/core/data/stlsheet.cxx | |
parent | 6a069bea171a9857829d82711d16ec19621ff5f7 (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/core/data for easier review.
Change-Id: Id26cf9c38c8ed76448f615b775423a3f5dbc5ef4
Reviewed-on: https://gerrit.libreoffice.org/54100
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/stlsheet.cxx')
-rw-r--r-- | sc/source/core/data/stlsheet.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx index a7b12c444878..d9a42eb06778 100644 --- a/sc/source/core/data/stlsheet.cxx +++ b/sc/source/core/data/stlsheet.cxx @@ -41,6 +41,7 @@ #include <vcl/svapp.hxx> #include <globstr.hrc> +#include <scresid.hxx> #include <sc.hrc> #include <helpids.h> @@ -285,7 +286,7 @@ void ScStyleSheet::Notify( SfxBroadcaster&, const SfxHint& rHint ) bool ScStyleSheet::SetName(const OUString& rNew, bool bReindexNow) { OUString aFileStdName = STRING_STANDARD; - if ( rNew == aFileStdName && aFileStdName != ScGlobal::GetRscString(STR_STYLENAME_STANDARD) ) + if ( rNew == aFileStdName && aFileStdName != ScResId(STR_STYLENAME_STANDARD) ) return false; else return SfxStyleSheet::SetName(rNew, bReindexNow); |