From 683c2e286e2b8f3220481625d085bdde8e1eab29 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Singh Date: Tue, 18 Oct 2022 20:53:24 +0530 Subject: tdf#143148 Use pragma once in vcl/source/edit Change-Id: I62be40614baf489433a53f19397737031d1f217b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141509 Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- vcl/source/edit/textdat2.hxx | 5 +---- vcl/source/edit/textdoc.hxx | 5 +---- vcl/source/edit/textund2.hxx | 5 +---- vcl/source/edit/textundo.hxx | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/textdat2.hxx b/vcl/source/edit/textdat2.hxx index c620f91ad4e2..e0174848f74a 100644 --- a/vcl/source/edit/textdat2.hxx +++ b/vcl/source/edit/textdat2.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VCL_SOURCE_EDIT_TEXTDAT2_HXX -#define INCLUDED_VCL_SOURCE_EDIT_TEXTDAT2_HXX +#pragma once #include #include @@ -279,6 +278,4 @@ struct TextDDInfo } }; -#endif // INCLUDED_VCL_SOURCE_EDIT_TEXTDAT2_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/edit/textdoc.hxx b/vcl/source/edit/textdoc.hxx index babd9a248594..3dd0dce8d262 100644 --- a/vcl/source/edit/textdoc.hxx +++ b/vcl/source/edit/textdoc.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_VCL_SOURCE_EDIT_TEXTDOC_HXX -#define INCLUDED_VCL_SOURCE_EDIT_TEXTDOC_HXX +#pragma once #include #include @@ -124,6 +123,4 @@ public: bool IsValidPaM( const TextPaM& rPaM ); }; -#endif // INCLUDED_VCL_SOURCE_EDIT_TEXTDOC_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/edit/textund2.hxx b/vcl/source/edit/textund2.hxx index e537f6701435..7aea9af6b87e 100644 --- a/vcl/source/edit/textund2.hxx +++ b/vcl/source/edit/textund2.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_VCL_SOURCE_EDIT_TEXTUND2_HXX -#define INCLUDED_VCL_SOURCE_EDIT_TEXTUND2_HXX +#pragma once #include "textundo.hxx" #include @@ -103,6 +102,4 @@ public: virtual OUString GetComment () const override; }; -#endif // INCLUDED_VCL_SOURCE_EDIT_TEXTUND2_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/edit/textundo.hxx b/vcl/source/edit/textundo.hxx index 0ec4a9aba328..571a16c2cea6 100644 --- a/vcl/source/edit/textundo.hxx +++ b/vcl/source/edit/textundo.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_VCL_SOURCE_EDIT_TEXTUNDO_HXX -#define INCLUDED_VCL_SOURCE_EDIT_TEXTUNDO_HXX +#pragma once #include #include @@ -75,6 +74,4 @@ public: virtual OUString GetComment() const override; }; -#endif // INCLUDED_VCL_SOURCE_EDIT_TEXTUNDO_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit