Kaydet (Commit) 70417fc1 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

janitorial: simplify code

xStorable is obtained from a XComponent,
so use the original instead of requerying
a XComponent from the XStorable.

Change-Id: Iec5ca6ddcf3eedd193ec04129ba9aa1d13af1d0e
üst 92c53b9d
......@@ -66,8 +66,7 @@ void ChartTest::reload(const OUString& rFilterName)
utl::TempFile aTempFile;
aTempFile.EnableKillingFile();
xStorable->storeToURL(aTempFile.GetURL(), aArgs);
uno::Reference<lang::XComponent> xComponent(xStorable, uno::UNO_QUERY);
xComponent->dispose();
mxComponent->dispose();
mxComponent = loadFromDesktop(aTempFile.GetURL(), "com.sun.star.sheet.SpreadsheetDocument");
std::cout << aTempFile.GetURL();
CPPUNIT_ASSERT(mxComponent.is());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment