Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit e9aba07

Browse files
committed
refactor: Clang format for short functions
1 parent ef03011 commit e9aba07

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ ColumnLimit: 120
99

1010
AccessModifierOffset: -3
1111
AlignConsecutiveDeclarations: true
12+
13+
AllowShortFunctionsOnASingleLine: Inline
14+

src/openhab.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,19 +119,19 @@ class OpenHAB : public Integration {
119119
const QString* lookupComplexLightItem(const QString& entityId, LightDef::Attributes attr);
120120

121121
private:
122-
QNetworkAccessManager _sseNetworkManager;
123-
QNetworkReply* _sseReply;
124-
QTimer* _sseReconnectTimer;
125-
QTimer _pollingTimer;
126-
QString _url;
127-
QNetworkAccessManager _nam;
128-
QList<EntityInterface*> _myEntities; // Entities of this integration
129-
QMap<QString, OHPlayer> _ohPlayers; // YIO player entities
130-
QMap<QString, OHPlayerItem> _ohPlayerItems; // OpenHAB items associated with player
131-
QMap<QString, OHLight> _ohLights; // YIO complex light entities
132-
QMap<QString, OHLightItem> _ohLightItems; // OpenHAB items associated with special lights
133-
int _tries;
134-
bool _userDisconnect;
135-
bool _wasDisconnected;
136-
bool _standby;
122+
QNetworkAccessManager _sseNetworkManager;
123+
QNetworkReply* _sseReply;
124+
QTimer* _sseReconnectTimer;
125+
QTimer _pollingTimer;
126+
QString _url;
127+
QNetworkAccessManager _nam;
128+
QList<EntityInterface*> _myEntities; // Entities of this integration
129+
QMap<QString, OHPlayer> _ohPlayers; // YIO player entities
130+
QMap<QString, OHPlayerItem> _ohPlayerItems; // OpenHAB items associated with player
131+
QMap<QString, OHLight> _ohLights; // YIO complex light entities
132+
QMap<QString, OHLightItem> _ohLightItems; // OpenHAB items associated with special lights
133+
int _tries;
134+
bool _userDisconnect;
135+
bool _wasDisconnected;
136+
bool _standby;
137137
};

0 commit comments

Comments
 (0)