From e75051a62ab8347cc5ff8cde3cb3ea6edf15e2ad Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 16:28:13 +0100 Subject: [PATCH] Remove useless const specifiers These are just values, so setting const on them has no effect as the caller will get a copy. --- common/rfb/ClientParams.h | 4 ++-- common/rfb/ServerParams.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/rfb/ClientParams.h b/common/rfb/ClientParams.h index 202cef4e..a78ad14c 100644 --- a/common/rfb/ClientParams.h +++ b/common/rfb/ClientParams.h @@ -62,8 +62,8 @@ namespace rfb { return !beforeVersion(major,minor+1); } - const int width() const { return width_; } - const int height() const { return height_; } + int width() const { return width_; } + int height() const { return height_; } const ScreenSet& screenLayout() const { return screenLayout_; } void setDimensions(int width, int height); void setDimensions(int width, int height, const ScreenSet& layout); diff --git a/common/rfb/ServerParams.h b/common/rfb/ServerParams.h index ce0c722f..dba8b9a1 100644 --- a/common/rfb/ServerParams.h +++ b/common/rfb/ServerParams.h @@ -51,8 +51,8 @@ namespace rfb { return !beforeVersion(major,minor+1); } - const int width() const { return width_; } - const int height() const { return height_; } + int width() const { return width_; } + int height() const { return height_; } const ScreenSet& screenLayout() const { return screenLayout_; } void setDimensions(int width, int height); void setDimensions(int width, int height, const ScreenSet& layout); -- 2.39.5