diff options
author | Eike Ziller <[email protected]> | 2024-07-29 11:46:05 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2024-07-29 10:13:25 +0000 |
commit | b463c7e04923f412f21329908f8eed383080a2c5 (patch) | |
tree | 2cc61b7d3e3fca089d87e890f72a4ddbf2dc501a /src/libs/utils/id.h | |
parent | a26ed2e12e94930948c1dc0fc4315eafb2c7e97d (diff) |
Add `const char` overload for Id::withSuffix
Otherwise `withSuffix('.')` adds `46` to the Id.
Amends 87280f25ce4ac99306825cdfba2697b735c6349b
Fixes: QTCREATORBUG-31325
Change-Id: I95b85220e319812886f4b648286e76f48f43a49b
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/libs/utils/id.h')
-rw-r--r-- | src/libs/utils/id.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/id.h b/src/libs/utils/id.h index 49d43746358..e8a150a49fa 100644 --- a/src/libs/utils/id.h +++ b/src/libs/utils/id.h @@ -28,6 +28,8 @@ public: static Id generate(); Id withSuffix(int suffix) const; + Id withSuffix(qsizetype suffix) const; + Id withSuffix(const char suffix) const; Id withSuffix(const char *suffix) const; Id withSuffix(const QStringView suffix) const; Id withPrefix(const char *prefix) const; |