From 3806063b01ab61b68857b6ddec102c1945c85483 Mon Sep 17 00:00:00 2001 From: Almamu Date: Fri, 9 May 2025 02:59:02 +0200 Subject: [PATCH] chore: formating issues by codefactor --- src/WallpaperEngine/Application/CApplicationContext.cpp | 1 - src/WallpaperEngine/Core/Projects/CPropertySlider.h | 2 +- src/WallpaperEngine/Core/Wallpapers/CScene.h | 2 +- src/WallpaperEngine/Render/Shaders/CShaderUnit.cpp | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WallpaperEngine/Application/CApplicationContext.cpp b/src/WallpaperEngine/Application/CApplicationContext.cpp index f8abbde..f513381 100644 --- a/src/WallpaperEngine/Application/CApplicationContext.cpp +++ b/src/WallpaperEngine/Application/CApplicationContext.cpp @@ -59,7 +59,6 @@ CApplicationContext::CApplicationContext (int argc, char* argv []) : this->settings.render.window.geometry.y = strtol (delim1 + 1, nullptr, 10); this->settings.render.window.geometry.z = strtol (delim2 + 1, nullptr, 10); this->settings.render.window.geometry.w = strtol (delim3 + 1, nullptr, 10); - }) .append (); backgroundMode.add_argument ("-r", "--screen-root") diff --git a/src/WallpaperEngine/Core/Projects/CPropertySlider.h b/src/WallpaperEngine/Core/Projects/CPropertySlider.h index da7cbc2..3366a4a 100644 --- a/src/WallpaperEngine/Core/Projects/CPropertySlider.h +++ b/src/WallpaperEngine/Core/Projects/CPropertySlider.h @@ -31,8 +31,8 @@ class CPropertySlider final : public CProperty { void set (const std::string& value) override; [[nodiscard]] const char* getType () const override; - private: + private: /** Minimum value */ const float m_min; /** Maximum value */ diff --git a/src/WallpaperEngine/Core/Wallpapers/CScene.h b/src/WallpaperEngine/Core/Wallpapers/CScene.h index e10d5d8..dfdff47 100644 --- a/src/WallpaperEngine/Core/Wallpapers/CScene.h +++ b/src/WallpaperEngine/Core/Wallpapers/CScene.h @@ -51,8 +51,8 @@ class CScene : public CWallpaper { [[nodiscard]] const glm::vec3& getSkylightColor () const; [[nodiscard]] const Scenes::CCamera* getCamera () const; - protected: + protected: friend class CWallpaper; void insertObject (const CObject* object); diff --git a/src/WallpaperEngine/Render/Shaders/CShaderUnit.cpp b/src/WallpaperEngine/Render/Shaders/CShaderUnit.cpp index e218d42..a4cc72b 100644 --- a/src/WallpaperEngine/Render/Shaders/CShaderUnit.cpp +++ b/src/WallpaperEngine/Render/Shaders/CShaderUnit.cpp @@ -424,7 +424,6 @@ void CShaderUnit::parseParameterConfiguration ( } else if (require != data.end ()) { // this is required based on certain conditions if (requireany != data.end () && requireany->get ()) { - // any of the values set are valid, check for them for (const auto& item : require->items ()) { const std::string& macro = item.key ();