From b29a3b6bac8162ccadc8dcf870bd73b9e1e964a2 Mon Sep 17 00:00:00 2001 From: Hakan Bakacak Date: Sun, 26 Jan 2020 12:04:47 +0300 Subject: tdf#124176: Use pragma once instead of include guards Change-Id: I65639e32765ba0804aeb5b5880eca2b5d186485e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87431 Reviewed-by: Muhammet Kara Tested-by: Muhammet Kara --- hwpfilter/source/hstream.hxx | 4 +--- include/svx/swframeposstrings.hxx | 5 ++--- include/svx/sxcaitm.hxx | 6 ++---- include/svx/tbxcolor.hxx | 7 ++----- include/svx/xmlsecctrl.hxx | 5 +---- 5 files changed, 8 insertions(+), 19 deletions(-) diff --git a/hwpfilter/source/hstream.hxx b/hwpfilter/source/hstream.hxx index e082e3aefd22..bf0d55442d9d 100644 --- a/hwpfilter/source/hstream.hxx +++ b/hwpfilter/source/hstream.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_HWPFILTER_SOURCE_HSTREAM_H -#define INCLUDED_HWPFILTER_SOURCE_HSTREAM_H +#pragma once #include @@ -47,6 +46,5 @@ class HStream std::vector seq; size_t pos; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/swframeposstrings.hxx b/include/svx/swframeposstrings.hxx index c0ef3a3520d0..06cbc4028c6b 100644 --- a/include/svx/swframeposstrings.hxx +++ b/include/svx/swframeposstrings.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_SVX_SWFRAMEPOSSTRINGS_HXX -#define INCLUDED_SVX_SWFRAMEPOSSTRINGS_HXX + +#pragma once #include #include @@ -78,6 +78,5 @@ public: }; static OUString GetString(StringId eId); }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/sxcaitm.hxx b/include/svx/sxcaitm.hxx index 50ed46c0c5ce..fc36d007604a 100644 --- a/include/svx/sxcaitm.hxx +++ b/include/svx/sxcaitm.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_SVX_SXCAITM_HXX -#define INCLUDED_SVX_SXCAITM_HXX + +#pragma once #include @@ -41,6 +41,4 @@ public: } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/tbxcolor.hxx b/include/svx/tbxcolor.hxx index 739bef3bbc15..b98b0be7b326 100644 --- a/include/svx/tbxcolor.hxx +++ b/include/svx/tbxcolor.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_SVX_TBXCOLOR_HXX -#define INCLUDED_SVX_TBXCOLOR_HXX + +#pragma once #include #include @@ -52,7 +52,4 @@ namespace svx } - -#endif // INCLUDED_SVX_TBXCOLOR_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx index 56b58dc2b3ef..5ba255a5ee9c 100644 --- a/include/svx/xmlsecctrl.hxx +++ b/include/svx/xmlsecctrl.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SVX_XMLSECCTRL_HXX -#define INCLUDED_SVX_XMLSECCTRL_HXX +#pragma once #include #include @@ -44,6 +43,4 @@ public: virtual void Command( const CommandEvent& rCEvt ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit