diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 20:43:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-10 22:14:59 +0000 |
commit | c27d0a583d5748bfe68bcf3be73a33e8d2823f8f (patch) | |
tree | 34e0b2ca915b5f7d6cc3aa7bc10bdaea00b3063b /include/editeng | |
parent | eee4dd746ea3fc09d51d008446ec82e3de456eed (diff) |
coverity#1355507 uninitialized scalar field
I think
commit b2fb84499e1f75735e8fd90bc2eece3fed9af5f6
Author: Noel Grandin <noel@peralex.com>
Date: Mon Mar 7 14:19:22 2016 +0200
loplugin:write only fields
wrong wrong and took out this param along with the unused nIndex
beside it
Change-Id: Idc34e03b5d59d4b0017fff456b79c807fda2535f
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/editeng.hxx | 4 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index debd4d141b49..b51b8b40a814 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -481,7 +481,7 @@ public: virtual void DrawingText( const Point& rStartPos, const OUString& rText, sal_Int32 nTextStart, sal_Int32 nTextLen, const long* pDXArray, const SvxFont& rFont, - sal_uInt8 nRightToLeft, + sal_Int32 nPara, sal_uInt8 nRightToLeft, const EEngineData::WrongSpellVector* pWrongSpellVector, const SvxFieldData* pFieldData, bool bEndOfLine, @@ -492,7 +492,7 @@ public: const Color& rTextLineColor); virtual void DrawingTab( const Point& rStartPos, long nWidth, const OUString& rChar, - const SvxFont& rFont, sal_uInt8 nRightToLeft, + const SvxFont& rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color& rOverlineColor, diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 8f3ed25b116a..ac3f0aaf0390 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -396,6 +396,7 @@ public: const OUString maText; sal_Int32 mnTextStart; sal_Int32 mnTextLen; + sal_Int32 mnPara; const SvxFont& mrFont; const long* mpDXArray; @@ -423,6 +424,7 @@ public: sal_Int32 nTxtStart, sal_Int32 nTxtLen, const SvxFont& rFnt, + sal_Int32 nPar, const long* pDXArr, const EEngineData::WrongSpellVector* pWrongSpellVector, const SvxFieldData* pFieldData, @@ -439,6 +441,7 @@ public: maText(rTxt), mnTextStart(nTxtStart), mnTextLen(nTxtLen), + mnPara(nPar), mrFont(rFnt), mpDXArray(pDXArr), mpWrongSpellVector(pWrongSpellVector), @@ -832,7 +835,7 @@ public: void DrawingText( const Point& rStartPos, const OUString& rText, sal_Int32 nTextStart, sal_Int32 nTextLen, const long* pDXArray, const SvxFont& rFont, - sal_uInt8 nRightToLeft, + sal_Int32 nPara, sal_uInt8 nRightToLeft, const EEngineData::WrongSpellVector* pWrongSpellVector, const SvxFieldData* pFieldData, bool bEndOfLine, @@ -843,7 +846,7 @@ public: const Color& rTextLineColor); void DrawingTab( const Point& rStartPos, long nWidth, const OUString& rChar, - const SvxFont& rFont, sal_uInt8 nRightToLeft, + const SvxFont& rFont, sal_Int32 nPara, sal_uInt8 nRightToLeft, bool bEndOfLine, bool bEndOfParagraph, const Color& rOverlineColor, |