diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-12 13:10:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-14 06:40:30 +0000 |
commit | 1e49e33c26950b606714c0dafb26cbcb2aeb3877 (patch) | |
tree | e510fd3a5babf1712d136b866120bea4dd5b8f1a /comphelper | |
parent | e1822c809b137859382139aace0c08be4547c157 (diff) |
loplugin:constantparam in chart2..connectivity
Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d
Reviewed-on: https://gerrit.libreoffice.org/28834
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/servicedecl.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx index 8a18fabb6a82..906df93f12f9 100644 --- a/comphelper/source/misc/servicedecl.cxx +++ b/comphelper/source/misc/servicedecl.cxx @@ -33,6 +33,8 @@ using namespace com::sun::star; namespace comphelper { namespace service_decl { +const char cDelim = ';'; + class ServiceDecl::Factory : public cppu::WeakImplHelper<lang::XSingleComponentFactory, lang::XServiceInfo> @@ -126,7 +128,7 @@ uno::Sequence<OUString> ServiceDecl::getSupportedServiceNames() const OString const str(m_pServiceNames); sal_Int32 nIndex = 0; do { - OString const token( str.getToken( 0, m_cDelim, nIndex ) ); + OString const token( str.getToken( 0, cDelim, nIndex ) ); vec.push_back( OUString( token.getStr(), token.getLength(), RTL_TEXTENCODING_ASCII_US ) ); } @@ -140,7 +142,7 @@ bool ServiceDecl::supportsService( OUString const& name ) const OString const str(m_pServiceNames); sal_Int32 nIndex = 0; do { - OString const token( str.getToken( 0, m_cDelim, nIndex ) ); + OString const token( str.getToken( 0, cDelim, nIndex ) ); if (name.equalsAsciiL( token.getStr(), token.getLength() )) return true; } |