summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-02-10 15:39:08 +0100
committerJulien Nabet <serval2412@yahoo.fr>2011-02-10 15:41:00 +0100
commita4e9a5c61409ff63aa917428a13bebeeae90a7a3 (patch)
treef5945d608a426be74093a7aea051138cf8f4937a /starmath
parentResolves: fdo#33750 #i94623# use optimal border width when zooming to optimal (diff)
downloadcore-a4e9a5c61409ff63aa917428a13bebeeae90a7a3.tar.gz
core-a4e9a5c61409ff63aa917428a13bebeeae90a7a3.zip
Some cppcheck cleaning
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx4
-rw-r--r--starmath/source/mathtype.hxx12
2 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 33ae54944f44..8685ee57571c 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -208,11 +208,11 @@ void SmCursor::DeletePrev(OutputDevice* pDev){
SmNodeList *pLineList = NodeToList(pMergeLine);
//Find iterator to patch
SmNodeList::iterator patchPoint = pLineList->end();
- patchPoint--;
+ --patchPoint;
//Convert second line to list
NodeToList(pLine, pLineList);
//Patch the line list
- patchPoint++;
+ ++patchPoint;
SmCaretPos PosAfterDelete = PatchLineList(pLineList, patchPoint);
//Parse the line
pLine = SmNodeListParser().Parse(pLineList);
diff --git a/starmath/source/mathtype.hxx b/starmath/source/mathtype.hxx
index 881209cdfdaa..3dbcdc6c5c2b 100644
--- a/starmath/source/mathtype.hxx
+++ b/starmath/source/mathtype.hxx
@@ -108,12 +108,12 @@ private:
sal_uInt8 nTag,sal_uInt8 nSelector,sal_uInt8 nVariation,
sal_Bool bSilent);
void HandleNudge();
- int xfLMOVE(sal_uInt8 nTest) {return nTest&0x80;}
- int xfAUTO(sal_uInt8 nTest) {return nTest&0x10;}
- int xfEMBELL(sal_uInt8 nTest) {return nTest&0x20;}
- int xfNULL(sal_uInt8 nTest) {return nTest&0x10;}
- int xfLSPACE(sal_uInt8 nTest) {return nTest&0x40;}
- int xfRULER(sal_uInt8 nTest) {return nTest&0x20;}
+ int xfLMOVE(sal_uInt8 nTest) const {return nTest&0x80;}
+ int xfAUTO(sal_uInt8 nTest) const {return nTest&0x10;}
+ int xfEMBELL(sal_uInt8 nTest) const {return nTest&0x20;}
+ int xfNULL(sal_uInt8 nTest) const {return nTest&0x10;}
+ int xfLSPACE(sal_uInt8 nTest) const {return nTest&0x40;}
+ int xfRULER(sal_uInt8 nTest) const {return nTest&0x20;}
sal_uInt8 HandleNodes(SmNode *pNode,int nLevel=0);
int StartTemplate(sal_uInt16 nSelector,sal_uInt16 nVariation=0);