diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 15:54:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 10:45:01 +0100 |
commit | 455e4011f7052c5d1fb4693a573e0998cf6badc8 (patch) | |
tree | ce9b3b511a3b61b936af7a4970ab4bcbaf620628 /vcl/source/filter | |
parent | cee129bf17bd604f96e3cfe62d3a55336e248ccd (diff) |
improve constparam loplugin
lots of little fixes to make the logic less pessimistic
Change-Id: If368822984250b11b98c56f5890177a1402e8660
Reviewed-on: https://gerrit.libreoffice.org/44168
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/sgfbram.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/sgvtext.cxx | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx index 8dcda618c817..e71fa944afeb 100644 --- a/vcl/source/filter/sgfbram.cxx +++ b/vcl/source/filter/sgfbram.cxx @@ -185,7 +185,7 @@ sal_uInt8 PcxExpand::GetByte(SvStream& rInp) return Data; } -bool SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead) +bool SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader const & rHead) { BmpFileHeader aBmpHead; BmpInfoHeader aBmpInfo; diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx index 9558f6fe1ebe..692a960aa559 100644 --- a/vcl/source/filter/sgvtext.cxx +++ b/vcl/source/filter/sgvtext.cxx @@ -248,7 +248,7 @@ void ChgSchnittBit(sal_uInt16 Bit, sal_uInt16 Radio1, sal_uInt16 Radio2, sal_uIn } } -UCHAR GetNextChar(UCHAR* TBuf, sal_uInt16 Index) +UCHAR GetNextChar(UCHAR const * TBuf, sal_uInt16 Index) { sal_uInt16 Cnt; while (TBuf[Index]==Escape) { @@ -348,7 +348,7 @@ UCHAR ProcessOne(const UCHAR* TBuf, sal_uInt16& Index, return c; } // end of ProcessOne -UCHAR GetTextChar(UCHAR* TBuf, sal_uInt16& Index, +UCHAR GetTextChar(UCHAR const * TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& AktAtr, sal_uInt16 Rest, bool ScanEsc) { @@ -381,7 +381,7 @@ UCHAR GetTextChar(UCHAR* TBuf, sal_uInt16& Index, // is 3x present in TextBuf, e.g.: "schiff-fahrt". } // If not separated then, "-f" is removed. } -UCHAR GetTextCharConv(UCHAR* TBuf, sal_uInt16& Index, +UCHAR GetTextCharConv(UCHAR const * TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& AktAtr, sal_uInt16 Rest) { @@ -402,7 +402,7 @@ UCHAR GetTextCharConv(UCHAR* TBuf, sal_uInt16& Index, // // Required line spacing in SGF-Units. ChrVPos is taken into account. // ====================================================================== -sal_uInt16 GetLineFeed(UCHAR* TBuf, sal_uInt16 Index, ObjTextType Atr0, ObjTextType AktAtr, +sal_uInt16 GetLineFeed(UCHAR const * TBuf, sal_uInt16 Index, ObjTextType Atr0, ObjTextType AktAtr, sal_uInt16 nChar, sal_uInt16& LF, sal_uInt16& MaxGrad) { bool AbsEnd=false; @@ -614,7 +614,7 @@ sal_uInt16 GetCharWidth(OutputDevice const & rOut, UCHAR c) return ChrWidth; } -UCHAR ProcessChar(OutputDevice& rOut, UCHAR* TBuf, ProcChrSta& R, ObjTextType& Atr0, +UCHAR ProcessChar(OutputDevice& rOut, UCHAR const * TBuf, ProcChrSta& R, ObjTextType& Atr0, sal_uInt16& nChars, sal_uInt16 Rest, short* Line, UCHAR* cLine) { @@ -649,7 +649,7 @@ UCHAR ProcessChar(OutputDevice& rOut, UCHAR* TBuf, ProcChrSta& R, ObjTextType& A return c; } -void FormatLine(UCHAR* TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& AktAtr, +void FormatLine(UCHAR const * TBuf, sal_uInt16& Index, ObjTextType& Atr0, ObjTextType& AktAtr, sal_uInt16 UmbWdt, sal_uInt16 AdjWdt, short* Line, sal_uInt16& nChars, UCHAR* cLine, bool TextFit) |