summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-06-30 12:05:59 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-06-30 23:00:19 +0200
commit7f232e3319d39e7fb8e0ba0930c20176a91d6325 (patch)
tree75bffa8d77610c798c9dd23039e4d575cbc4dd96 /svtools
parentf4b1a454883b71c631516ed9fb7f32e31f177821 (diff)
Constify, fix whitespaces
Change-Id: Ief4c2e01fb855ce294ecf000dfb9b9e12982e441
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/imap2.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx
index e1424f5d47b4..0bccdab00f83 100644
--- a/svtools/source/misc/imap2.cxx
+++ b/svtools/source/misc/imap2.cxx
@@ -287,12 +287,11 @@ void ImageMap::ImpReadCERNLine( const OString& rLine )
{
const sal_uInt16 nCount = comphelper::string::getTokenCount(aStr, '(') - 1;
tools::Polygon aPoly( nCount );
- OUString aURL;
for ( sal_uInt16 i = 0; i < nCount; i++ )
aPoly[ i ] = ImpReadCERNCoords( &pStr );
- aURL = ImpReadCERNURL( &pStr );
+ const OUString aURL = ImpReadCERNURL( &pStr );
maList.emplace_back( new IMapPolygonObject( aPoly, aURL, OUString(), OUString(), OUString(), OUString() ) );
}
@@ -425,8 +424,7 @@ void ImageMap::ImpReadNCSALine( const OString& rLine )
}
else if ( aToken == "poly" )
{
- const sal_uInt16 nCount = comphelper::string::getTokenCount(aStr,
- ',') - 1;
+ const sal_uInt16 nCount = comphelper::string::getTokenCount(aStr, ',') - 1;
const OUString aURL( ImpReadNCSAURL( &pStr ) );
tools::Polygon aPoly( nCount );