Skip to content

Commit

Permalink
style: Optimize class definition[065732]
Browse files Browse the repository at this point in the history
  • Loading branch information
Greedysky committed Nov 10, 2022
1 parent 0a608f3 commit 02b3f42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TTKCommon/TTKLibrary/ttkdesktopwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
QRect TTKDesktopWrapper::screenGeometry(int index)
{
#if TTK_QT_VERSION_CHECK(5,0,0)
const QList<QScreen *> &screens = QApplication::screens();
const QList<QScreen*> &screens = QApplication::screens();
return (index < 0 || index >= screens.count()) ? QRect() : screens[index]->geometry();
#else
QDesktopWidget *widget = QApplication::desktop();
Expand All @@ -20,7 +20,7 @@ QRect TTKDesktopWrapper::screenGeometry(int index)
QRect TTKDesktopWrapper::geometry()
{
#if TTK_QT_VERSION_CHECK(5,0,0)
const QList<QScreen *> &screens = QApplication::screens();
const QList<QScreen*> &screens = QApplication::screens();
QRegion virtualGeometry;
for(int i = 0; i < screens.count(); ++i)
{
Expand Down
6 changes: 3 additions & 3 deletions TTKCommon/TTKLibrary/ttksuperenum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ int TTKSuperEnum::stringToKey(const QString &name) const
return TTKSuperEnum::Null;
}

for(auto itr = m_enumValue.begin(); itr != m_enumValue.end(); ++itr)
for(auto it = m_enumValue.begin(); it != m_enumValue.end(); ++it)
{
if(itr->second == name)
if(it->second == name)
{
return itr->first;
return it->first;
}
}
return TTKSuperEnum::Null;
Expand Down
2 changes: 1 addition & 1 deletion TTKModule/TTKCore/ocrCoreKits/ocrbackgroundmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class TTK_MODULE_EXPORT OCRBackgroundManager : public QObject

QColor m_skinColor;
QStringList m_photos;
QList<QObject*> m_observer;
QObjectList m_observer;
QString m_background;

DECLARE_SINGLETON_CLASS(OCRBackgroundManager)
Expand Down

0 comments on commit 02b3f42

Please sign in to comment.