summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-10-24 11:37:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-10-24 18:05:04 +0200
commit331a013ee3dffd39c1999ab56f3a18160e76f50a (patch)
tree8cf5507cb86d90408092d992b9e47da6919e1caf /cppcanvas
parent60b9008d20641b4e454431c148fa8d77c98a75c8 (diff)
UnoApiTest: factor out common code
Change-Id: Ia8874d65ea8d7eb26d10b18e37ba2bac1a7d756b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141730 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/qa/extras/emfplus/emfplus.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/cppcanvas/qa/extras/emfplus/emfplus.cxx b/cppcanvas/qa/extras/emfplus/emfplus.cxx
index 2d96c5957fba..15b2133552f2 100644
--- a/cppcanvas/qa/extras/emfplus/emfplus.cxx
+++ b/cppcanvas/qa/extras/emfplus/emfplus.cxx
@@ -31,9 +31,7 @@ public:
Bitmap load(const char* pName)
{
- OUString aFileURL;
- createFileURL(OUString::createFromAscii(pName), aFileURL);
- mxComponent = loadFromDesktop(aFileURL, "com.sun.star.drawing.DrawingDocument");
+ loadFromURL(OUString::createFromAscii(pName));
SfxBaseModel* pModel = dynamic_cast<SfxBaseModel*>(mxComponent.get());
CPPUNIT_ASSERT(pModel);
SfxObjectShell* pShell = pModel->GetObjectShell();