summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-06-05 00:19:02 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-06-05 00:19:02 +0200
commit61fed3c77afa93d8f209eb5b2a27d7018d0869d8 (patch)
tree6b7017ea3b807ebfa626aa07a42db305e6a00c18 /lotuswordpro
parent63e8c1619ad599b5ef8719e38d452f610e83cdf9 (diff)
Unused private func 'LwpBulletStyleMgr::GetDivisionName'+perf check emptiness
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/LotusWordProImportFilter.cxx2
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.cxx25
-rw-r--r--lotuswordpro/source/filter/lwpbulletstylemgr.hxx1
3 files changed, 1 insertions, 27 deletions
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<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 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: