From 583c1c34ae9c974f68d21ee6b74baf87ab08c6cf Mon Sep 17 00:00:00 2001 From: Yusuf Keten Date: Wed, 18 Dec 2019 22:13:49 +0300 Subject: [PATCH] tdf#124176: Use pragma once instead of include guards Change-Id: Id65f17c9785e9db3eecfb1fba6902a04906077e5 Reviewed-on: https://gerrit.libreoffice.org/85428 Tested-by: Jenkins Reviewed-by: Muhammet Kara --- cppcanvas/source/inc/action.hxx | 5 +---- cppcanvas/source/inc/canvasgraphichelper.hxx | 5 +---- cppcanvas/source/inc/implrenderer.hxx | 5 +---- cppcanvas/source/inc/outdevstate.hxx | 5 +---- cppcanvas/source/inc/tools.hxx | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/cppcanvas/source/inc/action.hxx b/cppcanvas/source/inc/action.hxx index 67e67c5aa4dd..bf122292a2fd 100644 --- a/cppcanvas/source/inc/action.hxx +++ b/cppcanvas/source/inc/action.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CPPCANVAS_SOURCE_INC_ACTION_HXX -#define INCLUDED_CPPCANVAS_SOURCE_INC_ACTION_HXX +#pragma once #include @@ -146,6 +145,4 @@ namespace cppcanvas } } -#endif // INCLUDED_CPPCANVAS_SOURCE_INC_ACTION_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx index 48e0b9c35cd2..c1c23657a3f4 100644 --- a/cppcanvas/source/inc/canvasgraphichelper.hxx +++ b/cppcanvas/source/inc/canvasgraphichelper.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CPPCANVAS_SOURCE_INC_CANVASGRAPHICHELPER_HXX -#define INCLUDED_CPPCANVAS_SOURCE_INC_CANVASGRAPHICHELPER_HXX +#pragma once #include #include @@ -69,6 +68,4 @@ namespace cppcanvas } } -#endif // INCLUDED_CPPCANVAS_SOURCE_INC_CANVASGRAPHICHELPER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index c1224a40c212..6c260c3f3ecd 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CPPCANVAS_SOURCE_INC_IMPLRENDERER_HXX -#define INCLUDED_CPPCANVAS_SOURCE_INC_IMPLRENDERER_HXX +#pragma once #include @@ -245,6 +244,4 @@ namespace cppcanvas } } -#endif // INCLUDED_CPPCANVAS_SOURCE_INC_IMPLRENDERER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/inc/outdevstate.hxx b/cppcanvas/source/inc/outdevstate.hxx index 5c1a4c0d9166..590a7b2ec674 100644 --- a/cppcanvas/source/inc/outdevstate.hxx +++ b/cppcanvas/source/inc/outdevstate.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CPPCANVAS_SOURCE_INC_OUTDEVSTATE_HXX -#define INCLUDED_CPPCANVAS_SOURCE_INC_OUTDEVSTATE_HXX +#pragma once #include #include @@ -124,6 +123,4 @@ namespace cppcanvas } } -#endif // INCLUDED_CPPCANVAS_SOURCE_INC_OUTDEVSTATE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cppcanvas/source/inc/tools.hxx b/cppcanvas/source/inc/tools.hxx index 80a238881790..fab00805a93e 100644 --- a/cppcanvas/source/inc/tools.hxx +++ b/cppcanvas/source/inc/tools.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CPPCANVAS_SOURCE_INC_TOOLS_HXX -#define INCLUDED_CPPCANVAS_SOURCE_INC_TOOLS_HXX +#pragma once #include #include @@ -33,6 +32,4 @@ namespace cppcanvas } } -#endif // INCLUDED_CPPCANVAS_SOURCE_INC_TOOLS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */