diff options
author | Orgad Shaneh <[email protected]> | 2024-11-03 10:05:28 +0200 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2024-11-04 06:44:38 +0000 |
commit | 6384ce6d4ad1396754827cc26c718df4532627a9 (patch) | |
tree | a305cbac9d7d06346ac56a2dc788453c526b7251 /src/libs/utils/id.h | |
parent | dd1cbd6ac2669f54270fa1407758bcf8eb52b91a (diff) |
Id: Remove redundant const modifiers from by-value arguments
Change-Id: I2f66822b8b8076ed2eb13729bd466e9e2204bccb
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/utils/id.h')
-rw-r--r-- | src/libs/utils/id.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/utils/id.h b/src/libs/utils/id.h index 0acc753bdb2..b23c143ccdb 100644 --- a/src/libs/utils/id.h +++ b/src/libs/utils/id.h @@ -34,9 +34,9 @@ public: #if QT_POINTER_SIZE != 4 Id withSuffix(int suffix) const; #endif - Id withSuffix(const char suffix) const; + Id withSuffix(char suffix) const; Id withSuffix(const char *suffix) const; - Id withSuffix(const QStringView suffix) const; + Id withSuffix(QStringView suffix) const; Id withPrefix(const char *prefix) const; QByteArrayView name() const; @@ -54,8 +54,8 @@ public: bool operator>(Id id) const { return m_id > id.m_id; } bool alphabeticallyBefore(Id other) const; - static Id fromString(const QStringView str); // FIXME: avoid. - static Id fromName(const QByteArrayView ba); // FIXME: avoid. + static Id fromString(QStringView str); // FIXME: avoid. + static Id fromName(QByteArrayView ba); // FIXME: avoid. static Id fromSetting(const QVariant &variant); // Good to use. static QSet<Id> fromStringList(const QStringList &list); |