refactor: clang format line length

This commit is contained in:
Lars Toenning
2024-11-16 19:27:30 +01:00
parent c7779e1461
commit 1a0b2a8c5f
1352 changed files with 25994 additions and 26603 deletions

View File

@@ -11,22 +11,21 @@ SWIFT_DEFINE_VALUEOBJECT_MIXINS(swift::misc::network, CRole)
namespace swift::misc::network
{
CRole::CRole(const QString &name, const QString &description)
: m_name(name), m_description(description)
{}
CRole::CRole(const QString &name, const QString &description) : m_name(name), m_description(description) {}
QString CRole::convertToQString(bool i18n) const
{
Q_UNUSED(i18n);
return u"Role: " % m_name %
u" description: " % m_description %
this->getDbKeyAsStringInParentheses(" ");
return u"Role: " % m_name % u" description: " % m_description % this->getDbKeyAsStringInParentheses(" ");
}
QVariant CRole::propertyByIndex(CPropertyIndexRef index) const
{
if (index.isMyself()) { return QVariant::fromValue(*this); }
if (IDatastoreObjectWithIntegerKey::canHandleIndex(index)) { return IDatastoreObjectWithIntegerKey::propertyByIndex(index); }
if (IDatastoreObjectWithIntegerKey::canHandleIndex(index))
{
return IDatastoreObjectWithIntegerKey::propertyByIndex(index);
}
const ColumnIndex i = index.frontCasted<ColumnIndex>();
switch (i)
{