From: Pierre Ossman Date: Wed, 4 Jan 2023 15:28:13 +0000 (+0100) Subject: Remove useless const specifiers X-Git-Tag: v1.13.90~97^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e75051a62ab8347cc5ff8cde3cb3ea6edf15e2ad;p=tigervnc.git Remove useless const specifiers These are just values, so setting const on them has no effect as the caller will get a copy. --- 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);