Formats minimally release source files based on former clang-format

This commit is contained in:
torsten committed 2026-10-14 13:28:01 +00:00
1 parent b662e4daf9
commit 5644914fe3
387 files changed
+37323 -38074

No files matched your search

@@ -5,44 +5,46 @@
namespace httq
{
Logger* LoggerFactory::createLogger(QObject* parent)
{
Logger *LoggerFactory::createLogger(QObject *parent)
{
return new Logger(this, parent);
}
}
Logger::Logger(LoggerFactory* loggerFactory, QObject* parent) : QObject(parent), mLoggerFactory(loggerFactory)
{
Logger::Logger(LoggerFactory *loggerFactory, QObject *parent)
: QObject(parent)
, mLoggerFactory(loggerFactory)
{
if (parent == nullptr)
{
mPath = QStringLiteral("Global");
mPath = QStringLiteral("Global");
}
else
{
mPath = QString::fromUtf8(parent->metaObject()->className());
mPath = QString::fromUtf8(parent->metaObject()->className());
}
}
}
void Logger::debug(const QString& message)
{
void Logger::debug(const QString &message)
{
qtLogger(QStringLiteral("DEBUG"), qWarning()) << message;
}
}
void Logger::warning(const QString& message)
{
void Logger::warning(const QString &message)
{
qtLogger(QStringLiteral("WARNING"), qWarning()) << message;
}
}
void Logger::error(const QString& message)
{
void Logger::error(const QString &message)
{
qtLogger(QStringLiteral("ERROR"), qCritical()) << message;
}
}
QDebug Logger::qtLogger(const QString& type, QDebug logger)
{
QDebug Logger::qtLogger(const QString &type, QDebug logger)
{
QDebug d(logger.noquote());
d << type << mPath << ":";
return d;
}
}
} // namespace httq