From 6b022368cf0a4b3b575b7a3297d8efad288224b8 Mon Sep 17 00:00:00 2001 From: Varro33 <90246626+Varro33@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:49:15 +0100 Subject: [PATCH] Fix irrlicht error indent (#4676) --- lib/irrlicht/source/Irrlicht/CGUIListBox.cpp | 4 ++-- lib/irrlicht/source/Irrlicht/CGUIMeshViewer.cpp | 4 ++-- lib/irrlicht/source/Irrlicht/CGUITreeView.cpp | 8 ++++---- lib/irrlicht/source/Irrlicht/CIrrDeviceStub.cpp | 4 ++-- lib/irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp b/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp index 0321f6d7a..8c465a683 100644 --- a/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp +++ b/lib/irrlicht/source/Irrlicht/CGUIListBox.cpp @@ -611,8 +611,8 @@ u32 CGUIListBox::addItem(const wchar_t* text, s32 icon) void CGUIListBox::setSpriteBank(IGUISpriteBank* bank) { - if ( bank == IconBank ) - return; + if ( bank == IconBank ) + return; if (IconBank) IconBank->drop(); diff --git a/lib/irrlicht/source/Irrlicht/CGUIMeshViewer.cpp b/lib/irrlicht/source/Irrlicht/CGUIMeshViewer.cpp index d121e34a2..b3a9814a1 100644 --- a/lib/irrlicht/source/Irrlicht/CGUIMeshViewer.cpp +++ b/lib/irrlicht/source/Irrlicht/CGUIMeshViewer.cpp @@ -40,8 +40,8 @@ CGUIMeshViewer::~CGUIMeshViewer() //! sets the mesh to be shown void CGUIMeshViewer::setMesh(scene::IAnimatedMesh* mesh) { - if (mesh) - mesh->grab(); + if (mesh) + mesh->grab(); if (Mesh) Mesh->drop(); diff --git a/lib/irrlicht/source/Irrlicht/CGUITreeView.cpp b/lib/irrlicht/source/Irrlicht/CGUITreeView.cpp index 779b8cdd8..2d8c6fc4c 100644 --- a/lib/irrlicht/source/Irrlicht/CGUITreeView.cpp +++ b/lib/irrlicht/source/Irrlicht/CGUITreeView.cpp @@ -1055,8 +1055,8 @@ void CGUITreeView::setIconFont( IGUIFont* font ) { s32 height; - if ( font ) - font->grab(); + if ( font ) + font->grab(); if ( IconFont ) { IconFont->drop(); @@ -1077,8 +1077,8 @@ void CGUITreeView::setIconFont( IGUIFont* font ) //! The default is 0 (no images). void CGUITreeView::setImageList( IGUIImageList* imageList ) { - if (imageList ) - imageList->grab(); + if (imageList ) + imageList->grab(); if( ImageList ) { ImageList->drop(); diff --git a/lib/irrlicht/source/Irrlicht/CIrrDeviceStub.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceStub.cpp index a2a351a49..abd4d1f53 100644 --- a/lib/irrlicht/source/Irrlicht/CIrrDeviceStub.cpp +++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceStub.cpp @@ -327,8 +327,8 @@ IRandomizer* CIrrDeviceStub::createDefaultRandomizer() const //! Sets the input receiving scene manager. void CIrrDeviceStub::setInputReceivingSceneManager(scene::ISceneManager* sceneManager) { - if (sceneManager) - sceneManager->grab(); + if (sceneManager) + sceneManager->grab(); if (InputReceivingSceneManager) InputReceivingSceneManager->drop(); diff --git a/lib/irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp b/lib/irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp index f981c8cfe..945402938 100644 --- a/lib/irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp +++ b/lib/irrlicht/source/Irrlicht/CParticleSystemSceneNode.cpp @@ -72,8 +72,8 @@ IParticleEmitter* CParticleSystemSceneNode::getEmitter() //! Sets the particle emitter, which creates the particles. void CParticleSystemSceneNode::setEmitter(IParticleEmitter* emitter) { - if (emitter == Emitter) - return; + if (emitter == Emitter) + return; if (Emitter) Emitter->drop();