Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -48,9 +48,8 @@ BackendScope::~BackendScope() {
}
void BackendScope::activate() {
if (scopeType == ScopeType::Explicit &&
!(priorScope && this->backend == priorScope->backend) &&
!(nextScope && this->backend == nextScope->backend)) {
if (scopeType == ScopeType::Explicit && !(priorScope && this->backend == priorScope->backend) &&
!(nextScope && this->backend == nextScope->backend)) {
// Only activate when set to Explicit and
// only once per RenderBackend
backend.activate();
@@ -59,8 +58,7 @@ void BackendScope::activate() {
}
void BackendScope::deactivate() {
if (activated &&
!(nextScope && this->backend == nextScope->backend)) {
if (activated && !(nextScope && this->backend == nextScope->backend)) {
// Only deactivate when set to Explicit and
// only once per RenderBackend
backend.deactivate();