summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-01-09 13:33:51 +0200
committerNoel Grandin <noel@peralex.com>2013-01-28 08:22:27 +0200
commit1a92a885d65860b4b09b426bb4b10f7a6a336571 (patch)
tree6b35af947a311a01df4a152d1d9dc155f82afa91 /toolkit
parentb8d4b8656f1f4e4782ba7460070e99babc8a499e (diff)
fdo#46808, Convert some bits to new-style UNO
Change-Id: I505910ae117588d54b79e72c12368224b4632fb9
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/unocontrols.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index aa48fba639bb..162087113538 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -85,9 +85,7 @@ ImageHelper::getGraphicAndGraphicObjectFromURL_nothrow( uno::Reference< graphic:
{
// graphic manager uniqueid
rtl::OUString sID = _rURL.copy( sizeof( UNO_NAME_GRAPHOBJ_URLPREFIX ) - 1 );
- // get the DefaultContext
- ::comphelper::ComponentContext aContext( ::comphelper::getProcessServiceFactory() );
- xOutGraphicObj = graphic::GraphicObject::createWithId( aContext.getUNOContext(), sID );
+ xOutGraphicObj = graphic::GraphicObject::createWithId( ::comphelper::getProcessComponentContext(), sID );
}
else // linked
xOutGraphicObj = NULL; // release the GraphicObject