From 6201b6468f53338f833dd93809cb4a78458114aa Mon Sep 17 00:00:00 2001 From: jpuronah Date: Mon, 3 Apr 2023 11:21:23 +0300 Subject: [PATCH] tdf#143148: Use pragma once instead of include guards Change-Id: I8369e0bdb6a01838d87e7cddc1cbaed911fe461a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149952 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- lotuswordpro/inc/localtime.hxx | 5 +---- lotuswordpro/inc/lwpatomholder.hxx | 5 +---- lotuswordpro/inc/lwpbasetype.hxx | 5 +---- lotuswordpro/inc/lwpbookmarkmgr.hxx | 4 +--- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/lotuswordpro/inc/localtime.hxx b/lotuswordpro/inc/localtime.hxx index a9fac8ceaf74..e0106f2304c4 100644 --- a/lotuswordpro/inc/localtime.hxx +++ b/lotuswordpro/inc/localtime.hxx @@ -53,8 +53,7 @@ * * ************************************************************************/ -#ifndef INCLUDED_LOTUSWORDPRO_INC_LOCALTIME_HXX -#define INCLUDED_LOTUSWORDPRO_INC_LOCALTIME_HXX +#pragma once #include @@ -83,6 +82,4 @@ struct LtTm bool LtgGmTime(tools::Long rtime, LtTm& rtm); bool LtgLocalTime(tools::Long rtime, LtTm& rtm); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/inc/lwpatomholder.hxx b/lotuswordpro/inc/lwpatomholder.hxx index 321b5cb8f20d..9cf65973de11 100644 --- a/lotuswordpro/inc/lwpatomholder.hxx +++ b/lotuswordpro/inc/lwpatomholder.hxx @@ -53,8 +53,7 @@ * * ************************************************************************/ -#ifndef INCLUDED_LOTUSWORDPRO_INC_LWPATOMHOLDER_HXX -#define INCLUDED_LOTUSWORDPRO_INC_LWPATOMHOLDER_HXX +#pragma once #include #include "lwpdefs.hxx" @@ -81,6 +80,4 @@ public: }; inline bool LwpAtomHolder::HasValue() const { return (m_nAtom != BAD_ATOM); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/inc/lwpbasetype.hxx b/lotuswordpro/inc/lwpbasetype.hxx index c000501c511a..d91eab833882 100644 --- a/lotuswordpro/inc/lwpbasetype.hxx +++ b/lotuswordpro/inc/lwpbasetype.hxx @@ -59,8 +59,7 @@ * PanoseNumber, Point ************************************************************************/ -#ifndef INCLUDED_LOTUSWORDPRO_INC_LWPBASETYPE_HXX -#define INCLUDED_LOTUSWORDPRO_INC_LWPBASETYPE_HXX +#pragma once #include "lwpobjstrm.hxx" #include @@ -122,6 +121,4 @@ private: void LwpPoint::SetX(sal_Int32 nX) { m_nX = nX; } void LwpPoint::SetY(sal_Int32 nY) { m_nY = nY; } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/lotuswordpro/inc/lwpbookmarkmgr.hxx b/lotuswordpro/inc/lwpbookmarkmgr.hxx index 3cc02b121a66..7d5490cc6cad 100644 --- a/lotuswordpro/inc/lwpbookmarkmgr.hxx +++ b/lotuswordpro/inc/lwpbookmarkmgr.hxx @@ -58,8 +58,7 @@ * For LWP filter architecture prototype ************************************************************************/ -#ifndef INCLUDED_LOTUSWORDPRO_INC_LWPBOOKMARKMGR_HXX -#define INCLUDED_LOTUSWORDPRO_INC_LWPBOOKMARKMGR_HXX +#pragma once #include @@ -83,5 +82,4 @@ private: std::map> m_MapEnd; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */