mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
clang-format
This commit is contained in:
@ -101,7 +101,7 @@ void ConsoleUILibraryCreator::addExistingLibrary(const QString &name, const QStr
|
||||
|
||||
void ConsoleUILibraryCreator::removeLibrary(const QString &name)
|
||||
{
|
||||
//TODO add error handling
|
||||
// TODO add error handling
|
||||
YACReaderLibraries yacreaderLibraries;
|
||||
yacreaderLibraries.load();
|
||||
if (!yacreaderLibraries.contains(name)) {
|
||||
|
@ -25,7 +25,7 @@ void LibrariesUpdater::updateIfNeeded()
|
||||
if (comparation < 0) {
|
||||
bool updated = DataBaseManagement::updateToCurrentVersion(path);
|
||||
if (!updated) {
|
||||
//TODO log error
|
||||
// TODO log error
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "QsLogDest.h"
|
||||
|
||||
using namespace QsLogging;
|
||||
//Returns false in case of a parse error (unknown option or missing value); returns true otherwise.
|
||||
// Returns false in case of a parse error (unknown option or missing value); returns true otherwise.
|
||||
|
||||
void logSystemAndConfig()
|
||||
{
|
||||
@ -94,7 +94,7 @@ int main(int argc, char **argv)
|
||||
|
||||
QTextStream qout(stdout);
|
||||
|
||||
//general help
|
||||
// general help
|
||||
QTranslator translator;
|
||||
QString sufix = QLocale::system().name();
|
||||
|
||||
@ -193,7 +193,7 @@ int main(int argc, char **argv)
|
||||
QSettings *settings = new QSettings(YACReader::getSettingsPath() + "/" + QCoreApplication::applicationName() + ".ini", QSettings::IniFormat);
|
||||
settings->beginGroup("libraryConfig");
|
||||
|
||||
//server
|
||||
// server
|
||||
Startup *s = new Startup();
|
||||
if (parser.isSet("port")) {
|
||||
bool valid;
|
||||
@ -212,7 +212,7 @@ int main(int argc, char **argv)
|
||||
|
||||
QLOG_INFO() << "Running on port" << s->getPort();
|
||||
|
||||
//Update libraries to new versions
|
||||
// Update libraries to new versions
|
||||
LibrariesUpdater updater;
|
||||
updater.updateIfNeeded();
|
||||
|
||||
@ -222,7 +222,7 @@ int main(int argc, char **argv)
|
||||
|
||||
QLOG_INFO() << "YACReaderLibrary closed with exit code :" << ret;
|
||||
|
||||
//shutdown
|
||||
// shutdown
|
||||
s->stop();
|
||||
delete s;
|
||||
localServer->close();
|
||||
@ -332,7 +332,7 @@ int main(int argc, char **argv)
|
||||
delete settings;
|
||||
return 0;
|
||||
|
||||
} else //error
|
||||
} else // error
|
||||
{
|
||||
parser.process(app);
|
||||
parser.showHelp();
|
||||
|
Reference in New Issue
Block a user