summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
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 /vcl/qa/cppunit
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 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/gen/gen.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/gen/gen.cxx b/vcl/qa/cppunit/gen/gen.cxx
index 983a77ca29fd..cb3dda2b6ee3 100644
--- a/vcl/qa/cppunit/gen/gen.cxx
+++ b/vcl/qa/cppunit/gen/gen.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();