diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-05-15 22:11:00 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-05-15 22:11:00 +0200 |
commit | a95c7069c391563cc49eec6373216c589ba98348 (patch) | |
tree | 65d880998f9883bee2b7d5b591a1c0f93b38d11d /sd | |
parent | 2dd1f71b24da9a10f5cdbfd4a920d5f49963c861 (diff) |
sd html test: move local vars on top, clean-up
Change-Id: Iac393561337825e316a974801a6061944b8fd72a
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/HtmlExportTest.cxx | 4 | ||||
-rw-r--r-- | sd/qa/unit/sdmodeltestbase.hxx | 16 |
2 files changed, 9 insertions, 11 deletions
diff --git a/sd/qa/unit/HtmlExportTest.cxx b/sd/qa/unit/HtmlExportTest.cxx index a85f4a5bb5dc..388417f93be9 100644 --- a/sd/qa/unit/HtmlExportTest.cxx +++ b/sd/qa/unit/HtmlExportTest.cxx @@ -18,7 +18,7 @@ using namespace rtl; class SdHTMLFilterTest : public SdModelTestBase, public XmlTestTools, public HtmlTestTools { private: - htmlDocPtr exportAndparseHtml(sd::DrawDocShellRef& xDocShRef) + htmlDocPtr exportAndParseHtml(sd::DrawDocShellRef& xDocShRef) { FileFormat* pFormat = getFormat(HTML); OUString aExt = OUString( "." ) + OUString::createFromAscii(pFormat->pName); @@ -33,7 +33,7 @@ public: void testHTMLExport() { sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("/sd/qa/unit/data/HtmlExportTestDocument.odp")); - htmlDocPtr htmlDoc = exportAndparseHtml(xDocShRef); + htmlDocPtr htmlDoc = exportAndParseHtml(xDocShRef); assertXPath(htmlDoc, "/html", 1); assertXPath(htmlDoc, "/html/body", 1); diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx index bb8292923e5a..636bd0d01f67 100644 --- a/sd/qa/unit/sdmodeltestbase.hxx +++ b/sd/qa/unit/sdmodeltestbase.hxx @@ -63,10 +63,12 @@ FileFormat aFileFormats[] = { /// Base class for filter tests loading or roundtriping a document, and asserting the document model. class SdModelTestBase : public test::BootstrapFixture, public unotest::MacrosTest { +private: + uno::Reference<uno::XInterface> mxDrawComponent; + public: SdModelTestBase() - { - } + {} virtual void setUp() SAL_OVERRIDE { @@ -74,13 +76,13 @@ public: // This is a bit of a fudge, we do this to ensure that ScGlobals::ensure, // which is a private symbol to us, gets called - m_xDrawComponent = getMultiServiceFactory()->createInstance("com.sun.star.comp.Draw.PresentationDocument"); - CPPUNIT_ASSERT_MESSAGE("no impress component!", m_xDrawComponent.is()); + mxDrawComponent = getMultiServiceFactory()->createInstance("com.sun.star.comp.Draw.PresentationDocument"); + CPPUNIT_ASSERT_MESSAGE("no impress component!", mxDrawComponent.is()); } virtual void tearDown() SAL_OVERRIDE { - uno::Reference< lang::XComponent >( m_xDrawComponent, uno::UNO_QUERY_THROW )->dispose(); + uno::Reference<lang::XComponent>(mxDrawComponent, uno::UNO_QUERY_THROW)->dispose(); test::BootstrapFixture::tearDown(); } @@ -230,10 +232,6 @@ protected: } xDocShRef->DoClose(); } - - -private: - uno::Reference<uno::XInterface> m_xDrawComponent; }; #endif |