diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-03 14:15:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 06:38:52 +0000 |
commit | 7f509501e9b042aeae0cdcc8e267550a45ab43c2 (patch) | |
tree | 083402ff5d359eaa2df5a0c20dd6efe25ffab3cb /framework/inc/helper/mischelper.hxx | |
parent | 12ca2d6d32d750abe0d452387c0b51bcedf54f58 (diff) |
loplugin:oncevar in framework
Change-Id: I7528a4afd59a19b069bcad2106ca80f429ef12e0
Reviewed-on: https://gerrit.libreoffice.org/30525
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/helper/mischelper.hxx')
-rw-r--r-- | framework/inc/helper/mischelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx index 49fd219ba55d..de7044350b50 100644 --- a/framework/inc/helper/mischelper.hxx +++ b/framework/inc/helper/mischelper.hxx @@ -83,8 +83,8 @@ inline bool IsScriptTypeMatchingToLanguage( SvtScriptType nScriptType, LanguageT inline void RetrieveTypeNameFromResourceURL( const OUString& aResourceURL, OUString& aType, OUString& aName ) { - const sal_Int32 RESOURCEURL_PREFIX_SIZE = 17; - const char RESOURCEURL_PREFIX[] = "private:resource/"; + static const char RESOURCEURL_PREFIX[] = "private:resource/"; + static const sal_Int32 RESOURCEURL_PREFIX_SIZE = strlen(RESOURCEURL_PREFIX); if (( aResourceURL.startsWith( RESOURCEURL_PREFIX ) ) && ( aResourceURL.getLength() > RESOURCEURL_PREFIX_SIZE )) |