summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-13 13:08:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-14 11:40:32 +0200
commit59887868da3499c68d5f259cfa48178354397448 (patch)
treefea3595f08d0a2ff07070c34bc2b94bbb7a446e1 /vcl/opengl
parentafb0dfc41ebb0a6a96ae31c122c7f97743dc7486 (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/opengl')
-rw-r--r--vcl/opengl/PackedTextureAtlas.cxx2
-rw-r--r--vcl/opengl/salbmp.cxx6
-rw-r--r--vcl/opengl/x11/gdiimpl.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/opengl/PackedTextureAtlas.cxx b/vcl/opengl/PackedTextureAtlas.cxx
index 4e2695e5ae6e..98cffcd78b37 100644
--- a/vcl/opengl/PackedTextureAtlas.cxx
+++ b/vcl/opengl/PackedTextureAtlas.cxx
@@ -20,7 +20,7 @@
struct Node
{
- tools::Rectangle mRectangle;
+ tools::Rectangle const mRectangle;
std::unique_ptr<Node> mLeftNode;
std::unique_ptr<Node> mRightNode;
bool mOccupied;
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index fd07b1659f0d..5a5a2d4fc3d9 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -434,9 +434,9 @@ void lclInstantiateTexture(OpenGLTexture& rTexture, const int nWidth, const int
class ScanlineWriter
{
BitmapPalette& maPalette;
- sal_uInt8 mnColorsPerByte; // number of colors that are stored in one byte
- sal_uInt8 mnColorBitSize; // number of bits a color takes
- sal_uInt8 mnColorBitMask; // bit mask used to isolate the color
+ sal_uInt8 const mnColorsPerByte; // number of colors that are stored in one byte
+ sal_uInt8 const mnColorBitSize; // number of bits a color takes
+ sal_uInt8 const mnColorBitMask; // bit mask used to isolate the color
sal_uInt8* mpCurrentScanline;
long mnX;
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index bcb533b56bf8..6f230ce81360 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -81,7 +81,7 @@ namespace
{
private:
errorHandler oldErrorHandler;
- Display* mdpy;
+ Display* const mdpy;
public:
TempErrorHandler(Display* dpy, errorHandler newErrorHandler)