aboutsummaryrefslogtreecommitdiff
path: root/src/debug_functions.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-04-17 21:57:16 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2020-04-17 21:57:16 -0500
commit13942345c6a3e7e1625c6c26cc2f2f368a3bff23 (patch)
tree73ce940217b57fd47afb6a95e828e6309ed5e683 /src/debug_functions.cpp
parentfaac191f0b9e99b82614ed3959ec5c67f56a1fc3 (diff)
Run clang-format on entire project
Indentation fixed to 2 spaces per tab. Braces set to Stroustrup style. Lines reflow at 80 characters. One-line method bodies are on the same line as the signature. Space always after `//`. No indentation on preprocessor macros. Includes are sorted lexicographically. If you don't want to see this commit on blames, use the hidden whitespace option on GitHub, or use `-w` in git-blame.
Diffstat (limited to 'src/debug_functions.cpp')
-rw-r--r--src/debug_functions.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/debug_functions.cpp b/src/debug_functions.cpp
index a790610d..6186b9da 100644
--- a/src/debug_functions.cpp
+++ b/src/debug_functions.cpp
@@ -1,5 +1,5 @@
-#include <QMessageBox>
#include <QCoreApplication>
+#include <QMessageBox>
#include "debug_functions.h"
@@ -7,11 +7,12 @@ void call_error(QString p_message)
{
QMessageBox *msgBox = new QMessageBox;
- msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1").arg(p_message));
- msgBox->setWindowTitle(QCoreApplication::translate("debug_functions", "Error"));
-
+ msgBox->setText(QCoreApplication::translate("debug_functions", "Error: %1")
+ .arg(p_message));
+ msgBox->setWindowTitle(
+ QCoreApplication::translate("debug_functions", "Error"));
- //msgBox->setWindowModality(Qt::NonModal);
+ // msgBox->setWindowModality(Qt::NonModal);
msgBox->exec();
}
@@ -20,9 +21,10 @@ void call_notice(QString p_message)
QMessageBox *msgBox = new QMessageBox;
msgBox->setText(p_message);
- msgBox->setWindowTitle(QCoreApplication::translate("debug_functions", "Notice"));
+ msgBox->setWindowTitle(
+ QCoreApplication::translate("debug_functions", "Notice"));
- //msgBox->setWindowModality(Qt::NonModal);
+ // msgBox->setWindowModality(Qt::NonModal);
msgBox->exec();
}