From 5e5c9c07291f6b09623d31c92b1fb61c4ede576e Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Thu, 22 Feb 2018 16:54:34 +0100 Subject: Applied clang-format on source --- src/motddialog.cpp | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'src/motddialog.cpp') diff --git a/src/motddialog.cpp b/src/motddialog.cpp index 96d88542..a03bdf75 100644 --- a/src/motddialog.cpp +++ b/src/motddialog.cpp @@ -19,29 +19,20 @@ along with Mod Organizer. If not, see . #include "motddialog.h" #include "bbcode.h" -#include "utility.h" #include "ui_motddialog.h" +#include "utility.h" #include -MotDDialog::MotDDialog(const QString &message, QWidget *parent) - : QDialog(parent), ui(new Ui::MotDDialog) -{ - ui->setupUi(this); - ui->motdView->setHtml(BBCode::convertToHTML(message)); - connect(ui->motdView, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkClicked(QUrl))); +MotDDialog::MotDDialog(const QString& message, QWidget* parent) : QDialog(parent), ui(new Ui::MotDDialog) { + ui->setupUi(this); + ui->motdView->setHtml(BBCode::convertToHTML(message)); + connect(ui->motdView, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkClicked(QUrl))); } -MotDDialog::~MotDDialog() -{ - delete ui; -} +MotDDialog::~MotDDialog() { delete ui; } -void MotDDialog::on_okButton_clicked() -{ - this->close(); -} +void MotDDialog::on_okButton_clicked() { this->close(); } -void MotDDialog::linkClicked(const QUrl &url) -{ - ::ShellExecuteW(nullptr, L"open", MOBase::ToWString(url.toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL); +void MotDDialog::linkClicked(const QUrl& url) { + ::ShellExecuteW(nullptr, L"open", MOBase::ToWString(url.toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL); } -- cgit v1.3.1