diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-09-27 11:35:23 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-09-27 11:38:09 +0200 |
commit | 70417fc19fb228ed6862f3e37ed837d0ec312b40 (patch) | |
tree | 9c7ffa7b7188912b8e4fc1ef7c8467077ff956ec /chart2 | |
parent | 92c53b9d94a5d51e2d507b7eeecfcf2b023cdd4b (diff) |
janitorial: simplify code
xStorable is obtained from a XComponent,
so use the original instead of requerying
a XComponent from the XStorable.
Change-Id: Iec5ca6ddcf3eedd193ec04129ba9aa1d13af1d0e
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/qa/extras/charttest.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx index 8fe76e2288ce..8934ddb3c026 100644 --- a/chart2/qa/extras/charttest.hxx +++ b/chart2/qa/extras/charttest.hxx @@ -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()); |