summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-08-13 15:12:01 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-08-13 15:12:35 +0200
commit66fd1442696059cc6de07ec96af77082654a0990 (patch)
tree5368bc4dc5c39ff03dd9222bafd57442df0ff63e /lotuswordpro
parentfee11cbc619576ae69b03e62622a38bef8799502 (diff)
Some cppcheck cleaning
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwprowlayout.cxx4
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx
index 05ce115ad078..0d6264da06da 100644
--- a/lotuswordpro/source/filter/lwprowlayout.cxx
+++ b/lotuswordpro/source/filter/lwprowlayout.cxx
@@ -300,7 +300,7 @@ void LwpRowLayout::RegisterCurRowStyle(XFRow* pXFRow,sal_uInt16 nRowMark)
*/
sal_Int32 LwpRowLayout::FindMarkConnCell(sal_uInt8 nStartCol,sal_uInt8 nEndCol)
{
- if (m_ConnCellList.size() == 0)
+ if (m_ConnCellList.empty())
return -1;
sal_uInt16 nSpannRows = 1;
@@ -458,7 +458,7 @@ void LwpRowLayout::SetCellSplit(sal_uInt16 nEffectRows)
*/
sal_Bool LwpRowLayout::GetMergeCellFlag()
{
- if (m_ConnCellList.size() == 0)
+ if (m_ConnCellList.empty())
return sal_False;
else
return sal_True;
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index 55082cbefeb5..89c3f840a973 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -635,7 +635,7 @@ String LwpFormulaFunc::ToString(LwpTableLayout* pCellsMap)
}
//erase the last "|"
- if (m_aArgs.size()>0)
+ if (!m_aArgs.empty())
{
aFormula.Erase(aFormula.Len()-1,1);
}