diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-27 15:25:51 +0000 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-12-27 15:25:51 +0000 |
commit | 9567bfeab95cc0932073641dd162903850987d43 (patch) | |
tree | ab3f4c137eec2ce5eb794a6b16a9da221f2e8216 /src/qt/platformstyle.cpp | |
parent | e9262ea32a6e1d364fb7974844fadc36f931f8c6 (diff) | |
download | bitcoin-9567bfeab95cc0932073641dd162903850987d43.tar.xz |
clang-tidy: Add `performance-no-automatic-move` check
https://clang.llvm.org/extra/clang-tidy/checks/performance/no-automatic-move.html
Diffstat (limited to 'src/qt/platformstyle.cpp')
-rw-r--r-- | src/qt/platformstyle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/platformstyle.cpp b/src/qt/platformstyle.cpp index 89e022a067..a430650096 100644 --- a/src/qt/platformstyle.cpp +++ b/src/qt/platformstyle.cpp @@ -83,8 +83,8 @@ QColor PlatformStyle::TextColor() const QColor PlatformStyle::SingleColor() const { if (colorizeIcons) { - const QColor colorHighlightBg(QApplication::palette().color(QPalette::Highlight)); - const QColor colorHighlightFg(QApplication::palette().color(QPalette::HighlightedText)); + QColor colorHighlightBg(QApplication::palette().color(QPalette::Highlight)); + QColor colorHighlightFg(QApplication::palette().color(QPalette::HighlightedText)); const QColor colorText(QApplication::palette().color(QPalette::WindowText)); const int colorTextLightness = colorText.lightness(); if (abs(colorHighlightBg.lightness() - colorTextLightness) < abs(colorHighlightFg.lightness() - colorTextLightness)) { |