formatted all files with clang 9
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user