[Libreoffice-commits] .: lotuswordpro/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sat Jun 4 15:19:52 PDT 2011
lotuswordpro/source/filter/LotusWordProImportFilter.cxx | 2 -
lotuswordpro/source/filter/lwpbulletstylemgr.cxx | 25 ----------------
lotuswordpro/source/filter/lwpbulletstylemgr.hxx | 1
3 files changed, 1 insertion(+), 27 deletions(-)
New commits:
commit fcee78fa31cc87416020c41e11292ff5888a22a0
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jun 5 00:19:02 2011 +0200
Unused private func 'LwpBulletStyleMgr::GetDivisionName'+perf check emptiness
diff --git a/lotuswordpro/source/filter/LotusWordProImportFilter.cxx b/lotuswordpro/source/filter/LotusWordProImportFilter.cxx
index 47bb7a1..059f216 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 4fc74cd..bca610b 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<LwpDivInfo*>(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 24bd640..e5590ff 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:
More information about the Libreoffice-commits
mailing list