diff options
| author | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-21 01:04:56 +0100 |
|---|---|---|
| committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-11-27 09:16:08 +0000 |
| commit | 81f3452e1cf8cc7788ace0e920a75cded52c0ae7 (patch) | |
| tree | 85db4b9a8d64544b7a8a15ec3911ee96e82b1e5d /src/libs/utils/changeset.cpp | |
| parent | 5951b26f1a67dd508a48788deb3a07b16220f4f3 (diff) | |
Aggregation/Utils/ExtensionSystem: Make member functions const/static
readability-make-member-function-const finds lots of member functions
that could be made const. This change just picks getter functions that
really should be const.
readability-convert-member-functions-to-static finds non-static member
functions which do not access this. This change turns most of them
into static ones, but leaves some non static to keep the class API
consistent.
readability-static-accessed-through-instance fixes the places where
the originally non-static, now static functions were called through
instance.
Change-Id: I8cf16c01f7988a7c9d073b5f8ede6a9706b94fb0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/changeset.cpp')
| -rw-r--r-- | src/libs/utils/changeset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/changeset.cpp b/src/libs/utils/changeset.cpp index a7b27dcacd4..792ca3c15d5 100644 --- a/src/libs/utils/changeset.cpp +++ b/src/libs/utils/changeset.cpp @@ -321,7 +321,7 @@ void ChangeSet::convertToReplace(const EditOp &op, QList<EditOp> *replaceList) } } -bool ChangeSet::hadErrors() +bool ChangeSet::hadErrors() const { return m_error; } |
