summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-20 16:03:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-20 16:45:47 +0000
commitaa0951b22d958813a41f71f536bb4a07aa0e7f07 (patch)
treedc58cec78e5bc98de71bd9354cedf1744f0ca18d /framework/source/uiconfiguration
parent92bfe7e3052a7540c81d9fa152f55920ad00b8ee (diff)
empty Image is an empty XGraphic
Change-Id: I43fa17c2ef9324c841344554b093500d0fb26165
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 6d6e6bae05d2..d1e73bc3b633 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -224,7 +224,7 @@ static bool implts_checkAndScaleGraphic( uno::Reference< XGraphic >& rOutGraphic
if ( !rInGraphic.is() )
{
- rOutGraphic = Image().GetXGraphic();
+ rOutGraphic = uno::Reference<graphic::XGraphic>();
return false;
}
@@ -882,7 +882,7 @@ throw ( css::lang::IllegalArgumentException,
pDefaultImageList = implts_getDefaultImageList();
}
ImageList* pImageList = implts_getUserImageList(nIndex);
- uno::Reference< XGraphic > xEmptyGraphic( Image().GetXGraphic() );
+ uno::Reference<XGraphic> xEmptyGraphic;
for ( sal_Int32 i = 0; i < aCommandURLSequence.getLength(); i++ )
{
@@ -1034,8 +1034,8 @@ void ImageManagerImpl::reload()
rGlobalImageList = implts_getGlobalImageList();
pDefaultImageList = implts_getDefaultImageList();
}
- uno::Reference< XGraphic > xEmptyGraphic( Image().GetXGraphic() );
- CommandMap::const_iterator pIter = aOldUserCmdImageSet.begin();
+ uno::Reference<XGraphic> xEmptyGraphic;
+ CommandMap::const_iterator pIter = aOldUserCmdImageSet.begin();
while ( pIter != aOldUserCmdImageSet.end() )
{
if ( !pIter->second )