Add .clang-format and apply to src/ files

This commit is contained in:
Myned
2020-06-08 14:58:44 -04:00
parent 7458e9f2d5
commit 7a924438bc
18 changed files with 863 additions and 865 deletions

View File

@@ -47,7 +47,8 @@ struct WindowSceneSwitch {
bool focus;
inline WindowSceneSwitch(OBSWeakSource scene_, const char *window_,
OBSWeakSource transition_, bool fullscreen_, bool focus_)
OBSWeakSource transition_, bool fullscreen_,
bool focus_)
: scene(scene_),
window(window_),
transition(transition_),

View File

@@ -14,13 +14,13 @@ static inline bool WeakSourceValid(obs_weak_source_t *ws)
}
static inline QString MakeSwitchName(const QString &scene, const QString &value,
const QString &transition, bool fullscreen, bool focus)
const QString &transition, bool fullscreen,
bool focus)
{
QString name = QStringLiteral("[") + scene + QStringLiteral(", ") +
transition + QStringLiteral("]: ") + value;
transition + QStringLiteral("]: ") + value;
if (fullscreen || focus)
{
if (fullscreen || focus) {
name += QStringLiteral(" (only if");
if (fullscreen)