Browse Source

Remove const from class variables

It prohibits copy construction, copy assignment and move semantics.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
6d167e9a28
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/http/httperror.h
  2. 4
      src/base/indexrange.h
  3. 2
      src/webui/api/apierror.h

4
src/base/http/httperror.h

@ -39,8 +39,8 @@ public: @@ -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

4
src/base/indexrange.h

@ -57,8 +57,8 @@ public: @@ -57,8 +57,8 @@ public:
}
private:
const IndexType m_first;
const IndexType m_last;
IndexType m_first;
IndexType m_last;
};
template <typename T>

2
src/webui/api/apierror.h

@ -47,5 +47,5 @@ public: @@ -47,5 +47,5 @@ public:
APIErrorType type() const;
private:
const APIErrorType m_type;
APIErrorType m_type;
};

Loading…
Cancel
Save