Skip to content

Commit

Permalink
clang-format: adjust enum style
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed May 7, 2024
1 parent 7b95cde commit a7f2b6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ IndentWidth: 4
UseTab: Always
BraceWrapping:
AfterCaseLabel: true
AfterEnum: true
AfterEnum: false
AfterFunction: true
BreakBeforeBraces: Custom
AllowShortEnumsOnASingleLine: false
SeparateDefinitionBlocks: Leave
MaxEmptyLinesToKeep: 2

3 changes: 1 addition & 2 deletions source/StreamIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ class StreamIO : public BAdapterIO, BUrlProtocolListener {
void _ProcessMeta();

private:
enum FrameSync
{
enum FrameSync {
none,
first,
done
Expand Down
3 changes: 1 addition & 2 deletions source/StreamPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class StreamPlayer : private BLocker {
float Volume();
void SetVolume(float volume);

enum PlayState
{
enum PlayState {
InActive = -1,
Stopped,
Playing,
Expand Down

0 comments on commit a7f2b6e

Please sign in to comment.