From f38e243746730e01625c1282a75e083977facc90 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 11 Feb 2015 13:47:58 +0100 Subject: [PATCH] No need for this array to be writeable --- common/rfb/SConnection.cxx | 2 +- common/rfb/SConnection.h | 2 +- common/rfb/SMsgHandler.cxx | 2 +- common/rfb/SMsgHandler.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx index 9bff4cd8..bfff70cf 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx @@ -270,7 +270,7 @@ void SConnection::writeConnFailedFromScratch(const char* msg, os->flush(); } -void SConnection::setEncodings(int nEncodings, rdr::S32* encodings) +void SConnection::setEncodings(int nEncodings, const rdr::S32* encodings) { int i; diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h index f1542186..ef1de2b3 100644 --- a/common/rfb/SConnection.h +++ b/common/rfb/SConnection.h @@ -71,7 +71,7 @@ namespace rfb { // Overridden from SMsgHandler - virtual void setEncodings(int nEncodings, rdr::S32* encodings); + virtual void setEncodings(int nEncodings, const rdr::S32* encodings); // Methods to be overridden in a derived class diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx index d4046b1b..388b21f8 100644 --- a/common/rfb/SMsgHandler.cxx +++ b/common/rfb/SMsgHandler.cxx @@ -39,7 +39,7 @@ void SMsgHandler::setPixelFormat(const PixelFormat& pf) cp.setPF(pf); } -void SMsgHandler::setEncodings(int nEncodings, rdr::S32* encodings) +void SMsgHandler::setEncodings(int nEncodings, const rdr::S32* encodings) { bool firstFence, firstContinuousUpdates; diff --git a/common/rfb/SMsgHandler.h b/common/rfb/SMsgHandler.h index c21cf528..74509e0b 100644 --- a/common/rfb/SMsgHandler.h +++ b/common/rfb/SMsgHandler.h @@ -46,7 +46,7 @@ namespace rfb { virtual void clientInit(bool shared); virtual void setPixelFormat(const PixelFormat& pf); - virtual void setEncodings(int nEncodings, rdr::S32* encodings); + virtual void setEncodings(int nEncodings, const rdr::S32* encodings); virtual void framebufferUpdateRequest(const Rect& r, bool incremental) = 0; virtual void setDesktopSize(int fb_width, int fb_height, const ScreenSet& layout) = 0; -- 2.39.5