diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 13:08:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-14 11:40:32 +0200 |
commit | 59887868da3499c68d5f259cfa48178354397448 (patch) | |
tree | fea3595f08d0a2ff07070c34bc2b94bbb7a446e1 /vcl/unx/generic/print | |
parent | afb0dfc41ebb0a6a96ae31c122c7f97743dc7486 (diff) |
loplugin:constfields in vcl
Change-Id: I1072642be4fdfa720e61f2d7bad3c2701eb81610
Reviewed-on: https://gerrit.libreoffice.org/60430
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/print')
-rw-r--r-- | vcl/unx/generic/print/bitmap_gfx.cxx | 10 | ||||
-rw-r--r-- | vcl/unx/generic/print/genprnpsp.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/print/genpspgraphics.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/print/glyphset.hxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/print/prtsetup.hxx | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/generic/print/bitmap_gfx.cxx b/vcl/unx/generic/print/bitmap_gfx.cxx index b11b8a728f95..b34bdfd511d9 100644 --- a/vcl/unx/generic/print/bitmap_gfx.cxx +++ b/vcl/unx/generic/print/bitmap_gfx.cxx @@ -61,7 +61,7 @@ class HexEncoder : public ByteEncoder { private: - osl::File* mpFile; + osl::File* const mpFile; sal_uInt32 mnColumn; sal_uInt32 mnOffset; sal_Char mpFileBuffer[nBufferSize + 16]; @@ -127,7 +127,7 @@ class Ascii85Encoder : public ByteEncoder { private: - osl::File* mpFile; + osl::File* const mpFile; sal_uInt32 mnByte; sal_uInt8 mpByteBuffer[4]; @@ -277,9 +277,9 @@ private: std::array<LZWCTreeNode, 4096> mpTable; // LZW compression data LZWCTreeNode* mpPrefix; // the compression is as same as the TIFF compression - sal_uInt16 mnDataSize; - sal_uInt16 mnClearCode; - sal_uInt16 mnEOICode; + sal_uInt16 const mnDataSize; + sal_uInt16 const mnClearCode; + sal_uInt16 const mnEOICode; sal_uInt16 mnTableSize; sal_uInt16 mnCodeSize; sal_uInt32 mnOffset; diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index 19d38d65341d..8ccbfafb75a0 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -976,8 +976,8 @@ struct PDFNewJobParameters struct PDFPrintFile { - OUString maTmpURL; - PDFNewJobParameters maParameters; + OUString const maTmpURL; + PDFNewJobParameters const maParameters; PDFPrintFile( const OUString& i_rURL, const PDFNewJobParameters& i_rNewParameters ) : maTmpURL( i_rURL ) diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index 3a8f951ea03a..f74ecffdb990 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -521,7 +521,7 @@ void GenPspGraphics::invert(long,long,long,long,SalInvert) class ImplPspFontData : public FreetypeFontFace { private: - sal_IntPtr mnFontId; + sal_IntPtr const mnFontId; public: explicit ImplPspFontData( const psp::FastPrintFontInfo& ); diff --git a/vcl/unx/generic/print/glyphset.hxx b/vcl/unx/generic/print/glyphset.hxx index 7c058dd3fc16..52f7052bd710 100644 --- a/vcl/unx/generic/print/glyphset.hxx +++ b/vcl/unx/generic/print/glyphset.hxx @@ -40,8 +40,8 @@ class GlyphSet { private: - sal_Int32 mnFontID; - bool mbVertical; + sal_Int32 const mnFontID; + bool const mbVertical; OString maBaseName; typedef std::unordered_map< sal_GlyphId, sal_uInt8 > glyph_map_t; diff --git a/vcl/unx/generic/print/prtsetup.hxx b/vcl/unx/generic/print/prtsetup.hxx index d9f2f67df911..0685f80aa2b9 100644 --- a/vcl/unx/generic/print/prtsetup.hxx +++ b/vcl/unx/generic/print/prtsetup.hxx @@ -36,7 +36,7 @@ class RTSDialog : public weld::GenericDialogController ::psp::PrinterInfo m_aJobData; // some resources - OUString m_aInvalidString; + OUString const m_aInvalidString; bool m_bDataModified; // controls |