Skip to content

Commit 58a91f2

Browse files
style: format codes
1 parent 64d446b commit 58a91f2

6 files changed

+17
-18
lines changed

src/base/LemonApplicationInterface.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
#pragma once
99
//
10-
#include <QString>
1110
#include <QList>
1211
#include <QObject>
12+
#include <QString>
1313

1414
namespace Lemon {
1515
struct LemonStartupArguments {

src/base/LemonBaseApplication.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ auto LemonBaseApplication::parseCommandLine(bool *canContinue, QString *errorMes
8888
return true;
8989
}
9090

91-
9291
#define ProcessExtraStartupOptions(option) \
93-
DEBUG("Startup Options:" GEN_PAIR(parser.isSet(option##Option))); \
92+
DEBUG("Startup Options:" GEN_PAIR(parser.isSet(option##Option))); \
9493
StartupArguments.option = parser.isSet(option##Option);
9594

9695
ProcessExtraStartupOptions(debugLog);

src/base/LemonBaseApplication.hpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
#include "base/LemonApplicationInterface.hpp"
1313

1414
namespace Lemon {
15-
class LemonBaseApplication : public SingleApplication, public LemonApplicationInterface {
16-
Q_OBJECT
15+
class LemonBaseApplication : public SingleApplication, public LemonApplicationInterface {
16+
Q_OBJECT
1717

18-
public:
19-
LemonBaseApplication(int &argc, char *argv[])
20-
: SingleApplication(argc, argv, true, User | ExcludeAppPath | ExcludeAppVersion), LemonApplicationInterface(){};
21-
virtual ~LemonBaseApplication(){};
18+
public:
19+
LemonBaseApplication(int &argc, char *argv[])
20+
: SingleApplication(argc, argv, true, User | ExcludeAppPath | ExcludeAppVersion),
21+
LemonApplicationInterface(){};
22+
virtual ~LemonBaseApplication(){};
2223

23-
virtual bool Initialize() final;
24+
virtual bool Initialize() final;
2425

25-
private:
26-
bool parseCommandLine(bool *canContinue, QString *errorMessage);
27-
};
26+
private:
27+
bool parseCommandLine(bool *canContinue, QString *errorMessage);
28+
};
2829
} // namespace Lemon
29-

src/base/LemonConfig.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Lemon::base::config {
2626
int specialJudgeTimeLimit{};
2727
int fileSizeLimit{};
2828
int rejudgeTimes{};
29-
double defaultExtraTimeRatio{};
29+
double defaultExtraTimeRatio{};
3030
QString defaultInputFileExtension;
3131
QString defaultOutputFileExtension;
3232
QStringList inputFileExtensions;

src/base/LemonLog.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <QTextStream>
1313
#include <iostream>
1414
//
15-
#include <base/LemonMacro.hpp>
1615
#include <base/LemonBaseApplication.hpp>
16+
#include <base/LemonMacro.hpp>
1717

1818
#define NEWLINE "\r\n"
1919
#define ___LOG_EXPAND(___x) , QPair<std::string, decltype(___x)>(std::string(#___x), [&] { return ___x; }())
@@ -56,7 +56,8 @@ namespace Lemon::base {
5656
logStream << NEWLINE;
5757
#ifndef QT_DEBUG
5858
// We only process DEBUG log in Release mode
59-
if (t == LEMON_LOG_DEBUG && LemonCoreApplication && !LemonCoreApplication->StartupArguments.debugLog) {
59+
if (t == LEMON_LOG_DEBUG && LemonCoreApplication &&
60+
! LemonCoreApplication->StartupArguments.debugLog) {
6061
// Discard debug log in non-debug Lemon version with
6162
// no-debugLog mode.
6263
return;

src/base/LemonMacro.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*
66
*/
77

8-
98
#pragma once
109

1110
#define CONCATENATE1(arg1, arg2) CONCATENATE2(arg1, arg2)

0 commit comments

Comments
 (0)