mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Remove const from class variables
It prohibits copy construction, copy assignment and move semantics.
This commit is contained in:
parent
21581141f6
commit
6d167e9a28
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -57,8 +57,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
const IndexType m_first;
|
||||
const IndexType m_last;
|
||||
IndexType m_first;
|
||||
IndexType m_last;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
|
@ -47,5 +47,5 @@ public:
|
|||
APIErrorType type() const;
|
||||
|
||||
private:
|
||||
const APIErrorType m_type;
|
||||
APIErrorType m_type;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue