From e245217bf4abd70b7395061190557c2b7e6ec952 Mon Sep 17 00:00:00 2001 From: Vishwas <19ucc001@lnmiit.ac.in> Date: Thu, 31 Dec 2020 18:32:23 +0530 Subject: tdf#124176: Use pragma once instead of include guards Change-Id: I346da72b15d21f09440f65f2c4f832115267c5e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108552 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- sw/source/uibase/inc/bookmark.hxx | 5 +---- sw/source/uibase/inc/pgfnote.hxx | 5 +---- sw/source/uibase/inc/scroll.hxx | 6 ++---- sw/source/uibase/inc/swmodalredlineacceptdlg.hxx | 5 +---- sw/source/uibase/inc/swrenamexnameddlg.hxx | 5 +---- sw/source/uibase/inc/wtextsh.hxx | 6 +----- 6 files changed, 7 insertions(+), 25 deletions(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/bookmark.hxx b/sw/source/uibase/inc/bookmark.hxx index b6107e2914af..85f67e9c2981 100644 --- a/sw/source/uibase/inc/bookmark.hxx +++ b/sw/source/uibase/inc/bookmark.hxx @@ -16,8 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_BOOKMARK_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_BOOKMARK_HXX +#pragma once #include #include @@ -105,6 +104,4 @@ public: virtual ~SwInsertBookmarkDlg() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/pgfnote.hxx b/sw/source/uibase/inc/pgfnote.hxx index 36f2bdfb4ea0..c67c2f6a5b62 100644 --- a/sw/source/uibase/inc/pgfnote.hxx +++ b/sw/source/uibase/inc/pgfnote.hxx @@ -16,8 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_PGFNOTE_HXX +#pragma once #include @@ -64,6 +63,4 @@ private: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/scroll.hxx b/sw/source/uibase/inc/scroll.hxx index fff22eb0dbd0..883b896a2c63 100644 --- a/sw/source/uibase/inc/scroll.hxx +++ b/sw/source/uibase/inc/scroll.hxx @@ -16,8 +16,8 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SCROLL_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_SCROLL_HXX +#pragma once + #include class SwScrollbar: public ScrollBar @@ -52,6 +52,4 @@ public: virtual ~SwScrollbar() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx b/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx index 5c5450d5304f..450380b33c2c 100644 --- a/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx +++ b/sw/source/uibase/inc/swmodalredlineacceptdlg.hxx @@ -16,8 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SWMODALREDLINEACCEPTDLG_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_SWMODALREDLINEACCEPTDLG_HXX +#pragma once #include @@ -36,6 +35,4 @@ public: virtual void Activate() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/swrenamexnameddlg.hxx b/sw/source/uibase/inc/swrenamexnameddlg.hxx index b4540857e563..c8ed7dc52536 100644 --- a/sw/source/uibase/inc/swrenamexnameddlg.hxx +++ b/sw/source/uibase/inc/swrenamexnameddlg.hxx @@ -16,8 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_SWRENAMEXNAMEDDLG_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_SWRENAMEXNAMEDDLG_HXX +#pragma once #include #include @@ -59,6 +58,4 @@ public: } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/uibase/inc/wtextsh.hxx b/sw/source/uibase/inc/wtextsh.hxx index 264500046677..c8cd3c756638 100644 --- a/sw/source/uibase/inc/wtextsh.hxx +++ b/sw/source/uibase/inc/wtextsh.hxx @@ -16,9 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_WTEXTSH_HXX -#define INCLUDED_SW_SOURCE_UIBASE_INC_WTEXTSH_HXX +#pragma once #include "textsh.hxx" @@ -36,6 +34,4 @@ public: virtual ~SwWebTextShell() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3