From 6d167e9a28318da3426648035e58b5d0749690cf Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 29 Apr 2020 21:15:08 +0800 Subject: [PATCH] Remove const from class variables It prohibits copy construction, copy assignment and move semantics. --- src/base/http/httperror.h | 4 ++-- src/base/indexrange.h | 4 ++-- src/webui/api/apierror.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/base/http/httperror.h b/src/base/http/httperror.h index ab597ea64..853d6a7a9 100644 --- a/src/base/http/httperror.h +++ b/src/base/http/httperror.h @@ -39,8 +39,8 @@ public: QString statusText() const; private: - const int m_statusCode; - const QString m_statusText; + int m_statusCode; + QString m_statusText; }; class BadRequestHTTPError : public HTTPError diff --git a/src/base/indexrange.h b/src/base/indexrange.h index 85af9d3e9..88719e5a0 100644 --- a/src/base/indexrange.h +++ b/src/base/indexrange.h @@ -57,8 +57,8 @@ public: } private: - const IndexType m_first; - const IndexType m_last; + IndexType m_first; + IndexType m_last; }; template diff --git a/src/webui/api/apierror.h b/src/webui/api/apierror.h index e9181ca07..3879bd3af 100644 --- a/src/webui/api/apierror.h +++ b/src/webui/api/apierror.h @@ -47,5 +47,5 @@ public: APIErrorType type() const; private: - const APIErrorType m_type; + APIErrorType m_type; };