diff options
Diffstat (limited to 'sc/qa/extras/scsheetlinksobj.cxx')
-rw-r--r-- | sc/qa/extras/scsheetlinksobj.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx index d30473bda5d5..7504eaaa99e4 100644 --- a/sc/qa/extras/scsheetlinksobj.cxx +++ b/sc/qa/extras/scsheetlinksobj.cxx @@ -88,8 +88,7 @@ uno::Reference<uno::XInterface> ScSheetLinksObj::init() uno::Reference<sheet::XSpreadsheet> xSheet0(xIA->getByIndex(0), uno::UNO_QUERY_THROW); uno::Reference<sheet::XSheetLinkable> xSL(xSheet0, uno::UNO_QUERY_THROW); - OUString aFileURL; - createFileURL(u"ScSheetLinksObj.ods", aFileURL); + OUString aFileURL = createFileURL(u"ScSheetLinksObj.ods"); xSL->link(aFileURL, "Sheet1", "", "", sheet::SheetLinkMode_VALUE); uno::Reference<beans::XPropertySet> xPropertySet(xDoc, uno::UNO_QUERY_THROW); |