From 182c8f8357739f905bbd721006480502435b6b43 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 27 Nov 2022 12:04:31 -0800 Subject: Update brace style to match rest of my projects --- app/source/Cplt/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'app/source/Cplt/main.cpp') diff --git a/app/source/Cplt/main.cpp b/app/source/Cplt/main.cpp index 55c1019..2fef2bb 100644 --- a/app/source/Cplt/main.cpp +++ b/app/source/Cplt/main.cpp @@ -19,8 +19,7 @@ namespace fs = std::filesystem; using namespace std::literals::string_literals; using namespace std::literals::string_view_literals; -static std::unique_ptr CreateDefaultBackend() -{ +static std::unique_ptr CreateDefaultBackend() { #if defined(_WIN32) # if BUILD_CORE_WITH_DX12_BACKEND if (auto backend = RenderingBackend::CreateDx12Backend()) { @@ -71,8 +70,7 @@ static std::unique_ptr CreateDefaultBackend() return nullptr; } -static std::unique_ptr CreateBackend(std::string_view option) -{ +static std::unique_ptr CreateBackend(std::string_view option) { if (option == "default") { return CreateDefaultBackend(); } else if (option == "opengl2") { @@ -97,8 +95,7 @@ static std::unique_ptr CreateBackend(std::string_view option) } #ifdef DOCTEST_CONFIG_DISABLE -int main(int argc, char* argv[]) -{ +int main(int argc, char* argv[]) { argparse::ArgumentParser parser; parser.add_argument("--global-data-directory") .help("Directory in which global data (such as recently used projects) are saved to. Use 'default' to use the default directory on each platform.") @@ -147,8 +144,7 @@ int main(int argc, char* argv[]) fs::path path(dataDirOption); GlobalStates::Init(std::move(path)); } - DEFER - { + DEFER { GlobalStates::Shutdown(); }; -- cgit v1.2.3-70-g09d2