Clang-tidy + clang-format

This commit is contained in:
Carl Schwan
2020-11-27 00:19:54 +01:00
parent 49881f809d
commit 136a8f2af8
31 changed files with 470 additions and 332 deletions

View File

@@ -6,11 +6,12 @@
#include "neochatuser.h"
#include <PlatformTheme> // Kirigami
#include <utility>
#include "csapi/profile.h"
NeoChatUser::NeoChatUser(QString userId, Connection *connection)
: User(userId, connection)
: User(std::move(userId), connection)
{
m_theme = static_cast<Kirigami::PlatformTheme *>(qmlAttachedPropertiesObject<Kirigami::PlatformTheme>(this, true));
Q_ASSERT(m_theme);
@@ -23,10 +24,11 @@ QColor NeoChatUser::color()
return m_color;
}
void NeoChatUser::setColor(QColor color)
void NeoChatUser::setColor(const QColor &color)
{
if (m_color == color)
if (m_color == color) {
return;
}
m_color = color;
emit colorChanged(m_color);