summaryrefslogtreecommitdiff
path: root/svtools/source/uno/unoimap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-26 14:36:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-27 12:16:53 +0200
commit928dfebe109794eb079469a46f549e25b3b1e89d (patch)
tree2b3c438c25bc4f46ea22ada901699fe204d8b28c /svtools/source/uno/unoimap.cxx
parentbd28564be85ee51dc08cb2591840e1cb00263e28 (diff)
loplugin:returnconstant in svl,svtools
Change-Id: Id297a513f3313e10531f0ccd99a16277e4e37fa1 Reviewed-on: https://gerrit.libreoffice.org/58111 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/uno/unoimap.cxx')
-rw-r--r--svtools/source/uno/unoimap.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index 65757ccbda15..4c337df681d3 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -508,7 +508,7 @@ public:
explicit SvUnoImageMap();
SvUnoImageMap( const ImageMap& rMap, const SvEventDescription* pSupportedMacroItems );
- bool fillImageMap( ImageMap& rMap ) const;
+ void fillImageMap( ImageMap& rMap ) const;
/// @throws IllegalArgumentException
static SvUnoImageMapObject* getObject( const Any& aElement );
@@ -667,7 +667,7 @@ Sequence< OUString > SAL_CALL SvUnoImageMap::getSupportedServiceNames( )
return Sequence< OUString >( &aSN, 1 );
}
-bool SvUnoImageMap::fillImageMap( ImageMap& rMap ) const
+void SvUnoImageMap::fillImageMap( ImageMap& rMap ) const
{
rMap.ClearImageMap();
@@ -679,8 +679,6 @@ bool SvUnoImageMap::fillImageMap( ImageMap& rMap ) const
rMap.InsertIMapObject( *pNewMapObject );
delete pNewMapObject;
}
-
- return true;
}
@@ -718,7 +716,8 @@ bool SvUnoImageMap_fillImageMap( const Reference< XInterface >& xImageMap, Image
if( nullptr == pUnoImageMap )
return false;
- return pUnoImageMap->fillImageMap( rMap );
+ pUnoImageMap->fillImageMap( rMap );
+ return true;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */