diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 14:06:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-28 08:55:10 +0200 |
commit | 26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (patch) | |
tree | 42bf27db4a1da0fa3ea3bdd7997e7058c1638f98 /unotools/source/misc | |
parent | ef531e85d95fe18d553bce1a6926d24c08ffe2bf (diff) |
loplugin:oncevar in ucb..vbahelper
Change-Id: I1fc7c7505a42b3bf9d4a5ab22961930b9831d4ae
Reviewed-on: https://gerrit.libreoffice.org/39327
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/misc')
-rw-r--r-- | unotools/source/misc/ZipPackageHelper.cxx | 3 | ||||
-rw-r--r-- | unotools/source/misc/fontcvt.cxx | 6 | ||||
-rw-r--r-- | unotools/source/misc/mediadescriptor.cxx | 3 |
3 files changed, 4 insertions, 8 deletions
diff --git a/unotools/source/misc/ZipPackageHelper.cxx b/unotools/source/misc/ZipPackageHelper.cxx index 609b863c6710..7d03b43a9279 100644 --- a/unotools/source/misc/ZipPackageHelper.cxx +++ b/unotools/source/misc/ZipPackageHelper.cxx @@ -87,8 +87,7 @@ ZipPackageHelper::ZipPackageHelper( mxFactory = xFactory; // get root zip folder - OUString szRootFolder("/"); - mxHNameAccess->getByHierarchicalName( szRootFolder ) >>= mxRootFolder; + mxHNameAccess->getByHierarchicalName( "/" ) >>= mxRootFolder; } static OUString encodeZipUri( const OUString& rURI ) diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx index 97fdc3cb13af..dd3ad60fada3 100644 --- a/unotools/source/misc/fontcvt.cxx +++ b/unotools/source/misc/fontcvt.cxx @@ -1348,8 +1348,7 @@ const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, con if( aMapName == "starsymbol" || aMapName == "opensymbol" ) { - int nEntries = SAL_N_ELEMENTS(aStarSymbolRecodeTable); - for( int i = 0; i < nEntries; ++i) + for( int i = 0; i < int(SAL_N_ELEMENTS(aStarSymbolRecodeTable)); ++i) { const RecodeTable& r = aStarSymbolRecodeTable[i]; if( aOrgName.equalsAscii( r.pOrgName ) ) @@ -1364,8 +1363,7 @@ const ConvertChar* ConvertChar::GetRecodeData( const OUString& rOrgFontName, con //adobe-symbol to unicode conversion in rtl instead else if( aMapName == "applesymbol" ) { - int nEntries = SAL_N_ELEMENTS(aAppleSymbolRecodeTable); - for( int i = 0; i < nEntries; ++i) + for( int i = 0; i < int(SAL_N_ELEMENTS(aAppleSymbolRecodeTable)); ++i) { const RecodeTable& r = aAppleSymbolRecodeTable[i]; if( aOrgName.equalsAscii( r.pOrgName ) ) diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index c8c2ec98ea91..1e37fe199cad 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -575,8 +575,7 @@ bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference< cs aPostArgument.MediaType = sMediaType; aPostArgument.Referer = getUnpackedValueOrDefault( PROP_REFERRER(), OUString() ); - OUString sCommandName( "post" ); - aContent.executeCommand( sCommandName, css::uno::makeAny( aPostArgument ) ); + aContent.executeCommand( "post", css::uno::makeAny( aPostArgument ) ); // get result xResultStream = xSink->getInputStream(); |