Skip to content

Commit 1a589ca

Browse files
style: format code
1 parent b7b8385 commit 1a589ca

File tree

6 files changed

+18
-19
lines changed

6 files changed

+18
-19
lines changed

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
141
1+
142

src/base/LemonApplicationInterface.hpp

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 11 additions & 11 deletions
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/LemonLog.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
#pragma once
1010

11-
#include <QString>
1211
#include <QPair>
12+
#include <QString>
1313
#include <QTextStream>
1414
#include <iostream>
1515
//
16-
#include <base/LemonMacro.hpp>
1716
#include <base/LemonBaseApplication.hpp>
17+
#include <base/LemonMacro.hpp>
1818

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

src/base/LemonMacro.hpp

Lines changed: 0 additions & 1 deletion
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)