diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-02-10 15:39:08 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-02-10 15:41:00 +0100 |
commit | 185e6ff3c0ab0dcd168116a725d1247179f6d057 (patch) | |
tree | ca77bd98e9a6c500e6f54f2d7413e6261f344b17 /starmath | |
parent | 773d856c8ef2bf65aec25289cb0186d81d76f5f1 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cursor.cxx | 4 | ||||
-rw-r--r-- | starmath/source/mathtype.hxx | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 33ae54944f..8685ee5757 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 b03d943402..ec3aa24db7 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); |