diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 08:05:29 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-12-29 08:05:29 +0100 |
commit | 497c3df50ec2eb0f2c5d1e7cf324c85a7fb90da1 (patch) | |
tree | 41e6671b352a9609aedbfd75dd9d16c76332e935 /src/ui/Theme.h | |
parent | Cache supported animated image formats (diff) | |
download | nheko-497c3df50ec2eb0f2c5d1e7cf324c85a7fb90da1.tar.xz |
Prevent copies when querying theme
Diffstat (limited to 'src/ui/Theme.h')
-rw-r--r-- | src/ui/Theme.h | 4 |
1 files changed, 2 insertions, 2 deletions
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_; } |