Allow short case labels on single line, wrap braces before lambda bodies
#84
This commit is contained in:
parent
2b9b75ac97
commit
04db76ac80
2 changed files with 6 additions and 5 deletions
|
@ -6,9 +6,11 @@
|
|||
AccessModifierOffset: -4
|
||||
AlignAfterOpenBracket: DontAlign
|
||||
AllowShortBlocksOnASingleLine: true
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
AllowShortFunctionsOnASingleLine: All
|
||||
BasedOnStyle: LLVM
|
||||
BraceWrapping:
|
||||
BeforeLambdaBody: true
|
||||
AfterCaseLabel: true
|
||||
AfterClass: true
|
||||
AfterControlStatement: true
|
||||
|
|
|
@ -270,13 +270,12 @@ void CSoundEnt::Initialize()
|
|||
//=========================================================
|
||||
int CSoundEnt::ISoundsInList(int iListType)
|
||||
{
|
||||
int iThisSound = [=]() {
|
||||
int iThisSound = [=]()
|
||||
{
|
||||
switch (iListType)
|
||||
{
|
||||
case SOUNDLISTTYPE_FREE:
|
||||
return m_iFreeSound;
|
||||
case SOUNDLISTTYPE_ACTIVE:
|
||||
return m_iActiveSound;
|
||||
case SOUNDLISTTYPE_FREE: return m_iFreeSound;
|
||||
case SOUNDLISTTYPE_ACTIVE: return m_iActiveSound;
|
||||
default:
|
||||
ALERT(at_console, "Unknown Sound List Type!\n");
|
||||
return SOUNDLIST_EMPTY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue