From 6fff2b7cc37c35b38401018ed9f557ea2bd959fb Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 21 Jan 2025 10:34:13 +0100 Subject: Replaced include guards with #pragma once Thanks to https://github.com/cgmb/guardonce and a follow-up replace to remove duplicated newlines at end of file: find src -type f -name '*.h' -exec \ sed --in-place -e :a -e '/^\n*$/{$d;N;};/\n$/ba' {} \; Source: https://unix.stackexchange.com/questions/81685/how-to-remove-multiple-newlines-at-eof Fixes compile on macOS, which appears to have been due to the EVENT_H include guard. --- src/imageparticle.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/imageparticle.h') diff --git a/src/imageparticle.h b/src/imageparticle.h index ac677389..5e968a38 100644 --- a/src/imageparticle.h +++ b/src/imageparticle.h @@ -19,8 +19,7 @@ * along with this program. If not, see . */ -#ifndef IMAGEPARTICLE_H -#define IMAGEPARTICLE_H +#pragma once #include "particle.h" @@ -51,5 +50,3 @@ class ImageParticle : public Particle protected: Image *mImage; /**< The image used for this particle. */ }; - -#endif -- cgit v1.2.3-70-g09d2