Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
trialuser02 committed Sep 25, 2023
1 parent 833f561 commit 2abf2ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/qt6ct-qtplugin/qt6ctplatformtheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <QFont>
#include <QPalette>
#include <QLoggingCategory>
#include <QScopedPointer>
#include <QIcon>
#include <QFileInfo>
#include <memory>
Expand Down Expand Up @@ -94,7 +93,7 @@ private slots:
int m_wheelScrollLines = 3;
bool m_showShortcutsInContextMenus = false;
bool m_isIgnored = false;
QScopedPointer<QPlatformTheme> m_theme;
std::unique_ptr<QPlatformTheme> m_theme;
};

Q_DECLARE_LOGGING_CATEGORY(lqt6ct)
Expand Down
2 changes: 1 addition & 1 deletion src/qt6ct-style/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Qt6CTStylePlugin : public QStylePlugin

QStyle *Qt6CTStylePlugin::create(const QString &key)
{
if (key == "qt6ct-style" || key == "qt5ct-style")
if(key == QLatin1String("qt6ct-style") || key == QLatin1String("qt5ct-style"))
return new Qt6CTProxyStyle();
return nullptr;
}
Expand Down

0 comments on commit 2abf2ea

Please sign in to comment.