formatted all files with clang 9

This commit is contained in:
fourtf
2019-09-26 00:51:05 +02:00
parent e47a043a27
commit 9874bd779a
27 changed files with 102 additions and 185 deletions
+2 -4
View File
@@ -22,13 +22,11 @@ void initUpdateButton(Button &button,
dialog->buttonClicked.connect([&button](auto buttonType) {
switch (buttonType)
{
case UpdateDialog::Dismiss:
{
case UpdateDialog::Dismiss: {
button.hide();
}
break;
case UpdateDialog::Install:
{
case UpdateDialog::Install: {
Updates::getInstance().installUpdates();
}
break;
+6 -12
View File
@@ -19,38 +19,32 @@ inline QString parseTagString(const QString &input)
switch (c.cell())
{
case 'n':
{
case 'n': {
output.replace(i, 2, '\n');
}
break;
case 'r':
{
case 'r': {
output.replace(i, 2, '\r');
}
break;
case 's':
{
case 's': {
output.replace(i, 2, ' ');
}
break;
case '\\':
{
case '\\': {
output.replace(i, 2, '\\');
}
break;
case ':':
{
case ':': {
output.replace(i, 2, ';');
}
break;
default:
{
default: {
output.remove(i, 1);
}
break;
+4 -4
View File
@@ -61,10 +61,10 @@ private:
// new
if (other)
{
this->conn_ =
QObject::connect(other, &QObject::destroyed, qApp,
[this](QObject *) { this->set(nullptr); },
Qt::DirectConnection);
this->conn_ = QObject::connect(
other, &QObject::destroyed, qApp,
[this](QObject *) { this->set(nullptr); },
Qt::DirectConnection);
}
this->t_ = other;