From 497c3df50ec2eb0f2c5d1e7cf324c85a7fb90da1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 29 Dec 2021 08:05:29 +0100 Subject: Prevent copies when querying theme --- src/ui/Theme.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/Theme.h') diff --git a/src/ui/Theme.h b/src/ui/Theme.h index 4dbe03f9..457faf7b 100644 --- a/src/ui/Theme.h +++ b/src/ui/Theme.h @@ -66,8 +66,8 @@ class Theme : public QPalette Q_PROPERTY(QColor orange READ orange CONSTANT) public: Theme() {} - explicit Theme(std::string_view theme); - static QPalette paletteFromTheme(std::string_view theme); + explicit Theme(QStringView theme); + static QPalette paletteFromTheme(QStringView theme); QColor sidebarBackground() const { return sidebarBackground_; } QColor alternateButton() const { return alternateButton_; } -- cgit 1.5.1