Apply clang-format

This commit is contained in:
Bart De Vries 2021-06-19 13:29:47 +02:00
parent 4d6d8ae940
commit 14868bf04e
3 changed files with 9 additions and 10 deletions

View File

@ -8,29 +8,28 @@
#include <android/log.h>
const char *applicationName="org.kde.kasts";
void myMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg)
const char *applicationName = "org.kde.kasts";
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
QByteArray localMsg = msg.toLocal8Bit();
// const char *file = context.file ? context.file : "";
// const char *function = context.function ? context.function : "";
switch (type) {
case QtDebugMsg:
__android_log_write(ANDROID_LOG_DEBUG,applicationName,localMsg.constData());
__android_log_write(ANDROID_LOG_DEBUG, applicationName, localMsg.constData());
break;
case QtInfoMsg:
__android_log_write(ANDROID_LOG_INFO,applicationName,localMsg.constData());
__android_log_write(ANDROID_LOG_INFO, applicationName, localMsg.constData());
break;
case QtWarningMsg:
__android_log_write(ANDROID_LOG_WARN,applicationName,localMsg.constData());
__android_log_write(ANDROID_LOG_WARN, applicationName, localMsg.constData());
break;
case QtCriticalMsg:
__android_log_write(ANDROID_LOG_ERROR,applicationName,localMsg.constData());
__android_log_write(ANDROID_LOG_ERROR, applicationName, localMsg.constData());
break;
case QtFatalMsg:
default:
__android_log_write(ANDROID_LOG_FATAL,applicationName,localMsg.constData());
__android_log_write(ANDROID_LOG_FATAL, applicationName, localMsg.constData());
abort();
}
}

View File

@ -5,9 +5,9 @@
*/
#include "datamanager.h"
#include "datamanagerlogging.h"
#include "audiomanager.h"
#include "database.h"
#include "datamanagerlogging.h"
#include "fetcher.h"
#include "settingsmanager.h"
#include <QDateTime>

View File

@ -5,8 +5,8 @@
*/
#include "downloadprogressmodel.h"
#include "downloadprogressmodellogging.h"
#include "datamanager.h"
#include "downloadprogressmodellogging.h"
DownloadProgressModel::DownloadProgressModel()
: QAbstractListModel(nullptr)