mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Remove const from class variables
It prohibits copy construction, copy assignment and move semantics.
This commit is contained in:
@@ -39,8 +39,8 @@ public:
|
|||||||
QString statusText() const;
|
QString statusText() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const int m_statusCode;
|
int m_statusCode;
|
||||||
const QString m_statusText;
|
QString m_statusText;
|
||||||
};
|
};
|
||||||
|
|
||||||
class BadRequestHTTPError : public HTTPError
|
class BadRequestHTTPError : public HTTPError
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const IndexType m_first;
|
IndexType m_first;
|
||||||
const IndexType m_last;
|
IndexType m_last;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|||||||
@@ -47,5 +47,5 @@ public:
|
|||||||
APIErrorType type() const;
|
APIErrorType type() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const APIErrorType m_type;
|
APIErrorType m_type;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user