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

Commit

Permalink
refactor: Clang format for short functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zehnm committed Oct 22, 2020
1 parent ef03011 commit e9aba07
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ ColumnLimit: 120

AccessModifierOffset: -3
AlignConsecutiveDeclarations: true

AllowShortFunctionsOnASingleLine: Inline

30 changes: 15 additions & 15 deletions src/openhab.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,19 @@ class OpenHAB : public Integration {
const QString* lookupComplexLightItem(const QString& entityId, LightDef::Attributes attr);

private:
QNetworkAccessManager _sseNetworkManager;
QNetworkReply* _sseReply;
QTimer* _sseReconnectTimer;
QTimer _pollingTimer;
QString _url;
QNetworkAccessManager _nam;
QList<EntityInterface*> _myEntities; // Entities of this integration
QMap<QString, OHPlayer> _ohPlayers; // YIO player entities
QMap<QString, OHPlayerItem> _ohPlayerItems; // OpenHAB items associated with player
QMap<QString, OHLight> _ohLights; // YIO complex light entities
QMap<QString, OHLightItem> _ohLightItems; // OpenHAB items associated with special lights
int _tries;
bool _userDisconnect;
bool _wasDisconnected;
bool _standby;
QNetworkAccessManager _sseNetworkManager;
QNetworkReply* _sseReply;
QTimer* _sseReconnectTimer;
QTimer _pollingTimer;
QString _url;
QNetworkAccessManager _nam;
QList<EntityInterface*> _myEntities; // Entities of this integration
QMap<QString, OHPlayer> _ohPlayers; // YIO player entities
QMap<QString, OHPlayerItem> _ohPlayerItems; // OpenHAB items associated with player
QMap<QString, OHLight> _ohLights; // YIO complex light entities
QMap<QString, OHLightItem> _ohLightItems; // OpenHAB items associated with special lights
int _tries;
bool _userDisconnect;
bool _wasDisconnected;
bool _standby;
};

0 comments on commit e9aba07

Please sign in to comment.