[pim/kcalutils] src: clang-tidy misc-const-correctness fix
Allen Winter <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 0c1bc1bc4326c47bdd904bcfd15819337bfcf937 by Allen Winter.
Committed on 05/08/2026 at 19:57.
Pushed by winterz into branch 'master'.
clang-tidy misc-const-correctness fix
Fixes:
```
+ src/incidenceformatter.cpp:
- 2623:variable 'calStr' of type 'QString' can be declared 'const'
```
M +1 -1 src/incidenceformatter.cpp
https://invent.kde.org/pim/kcalutils/-/commit/0c1bc1bc4326c47bdd904bcfd15819337bfcf937
diff --git a/src/incidenceformatter.cpp b/src/incidenceformatter.cpp
index 6f4c83183..86271223a 100644
--- a/src/incidenceformatter.cpp
+++ b/src/incidenceformatter.cpp
@@ -2620,7 +2620,7 @@ QString IncidenceFormatter::ToolTipVisitor::generateToolTip(const Incidence::Ptr
tmp += QLatin1StringView("<b>") + incidence->richSummary() + QLatin1StringView("</b>");
tmp += QLatin1StringView("<hr>");
- QString calStr = mLocation;
+ const QString calStr = mLocation;
if (!calStr.isEmpty()) {
tmp += QLatin1StringView("<i>") + i18n("Calendar:") + QLatin1StringView("</i>") + QLatin1StringView(" ");
tmp += calStr;