From 61fed3c77afa93d8f209eb5b2a27d7018d0869d8 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 5 Jun 2011 00:19:02 +0200 Subject: Unused private func 'LwpBulletStyleMgr::GetDivisionName'+perf check emptiness --- .../source/filter/LotusWordProImportFilter.cxx | 2 +- lotuswordpro/source/filter/lwpbulletstylemgr.cxx | 25 ---------------------- lotuswordpro/source/filter/lwpbulletstylemgr.hxx | 1 - 3 files changed, 1 insertion(+), 27 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/LotusWordProImportFilter.cxx b/lotuswordpro/source/filter/LotusWordProImportFilter.cxx index ab9e9c1cca50..88d187bc8407 100644 --- a/lotuswordpro/source/filter/LotusWordProImportFilter.cxx +++ b/lotuswordpro/source/filter/LotusWordProImportFilter.cxx @@ -218,7 +218,7 @@ private: void writeXML() { - if ( m_vStringChunks.size() ) + if ( !m_vStringChunks.empty() ) { m_xDocHandler->startDocument(); SvXMLAttributeList *pAttrList = new SvXMLAttributeList(); diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx index 81ebbd5f175e..b5ad2c22e20e 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx @@ -78,7 +78,6 @@ LwpBulletStyleMgr::LwpBulletStyleMgr() : m_pBulletList(NULL), m_bContinue(sal_True), m_bIsBulletSkipped(sal_False), m_nCurrentPos(0xFF) { } - LwpBulletStyleMgr::~LwpBulletStyleMgr() { if (m_pBulletList) @@ -532,30 +531,6 @@ void LwpBulletStyleMgr::OutputBulletListTail(IXFStream* pOutputStream, sal_uInt1 } } -rtl::OUString LwpBulletStyleMgr::GetDivisionName() -{ - if (!m_pFoundry) - { - return rtl::OUString(); - } - - rtl::OUString aRet = rtl::OUString(); - - LwpDocument* pDoc = m_pFoundry->GetDocument(); - if (pDoc) - { - LwpObjectID* pID = pDoc->GetDivInfoID(); - if (!pID->IsNull()) - { - LwpDivInfo *pInfo = dynamic_cast(pID->obj(VO_DIVISIONINFO)); - if (pInfo) - aRet = pInfo->GetDivName(); - } - } - - return aRet; -} - rtl::OUString LwpBulletStyleMgr::GetSectionName(LwpPara* pPara) { LwpObjectID* pStoryID = pPara->GetStoryID(); diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx index b9268724d7f9..0fd573783eb8 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.hxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.hxx @@ -110,7 +110,6 @@ public: private: // void CreateNewListStyle(XFListStyle*& pListStyle, XFStyleManager* pXFStyleMgr); - rtl::OUString GetDivisionName(); rtl::OUString GetSectionName(LwpPara* pPara); private: -- cgit