Skip to content

Commit 46a8390

Browse files
committed
Astyle
1 parent 6a7e951 commit 46a8390

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
346346
#endif
347347
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
348348
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
349-
#endif
349+
#endif
350350
#include <proj_api.h>
351351

352352
//

src/app/qgscustomprojectiondialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extern "C"
4242
{
4343
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
4444
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
45-
#endif
45+
#endif
4646
#include <proj_api.h>
4747
}
4848

src/core/qgscoordinatetransform_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C"
2323
{
2424
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
2525
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
26-
#endif
26+
#endif
2727
#include <proj_api.h>
2828
}
2929
#include <sqlite3.h>

src/native/mac/qgsmacnative.mm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,15 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres
122122
bool QgsMacNative::hasDarkTheme()
123123
{
124124
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14
125-
if ([NSApp respondsToSelector:@selector(effectiveAppearance)]) {
125+
if ( [NSApp respondsToSelector:@selector( effectiveAppearance )] )
126+
{
126127
// compiled on macos 10.14+ AND running on macos 10.14+
127128
// check the settings of effective appearance of the user
128129
NSAppearanceName appearanceName = [NSApp.effectiveAppearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
129-
return ([appearanceName isEqualToString:NSAppearanceNameDarkAqua]);
130-
} else {
130+
return ( [appearanceName isEqualToString:NSAppearanceNameDarkAqua] );
131+
}
132+
else
133+
{
131134
// compiled on macos 10.14+ BUT running on macos 10.13-
132135
// DarkTheme was introduced in MacOS 10.14, fallback to light theme
133136
return false;

tests/src/core/testqgscoordinatereferencesystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Email : sherman at mrcc dot com
2626

2727
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
2828
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
29-
#endif
29+
#endif
3030
#include <proj_api.h>
3131
#include <gdal.h>
3232
#include <cpl_conv.h>

0 commit comments

Comments
 (0)