From a38fbfbf2f2d63d01444f0a0382b72de3e0af578 Mon Sep 17 00:00:00 2001 From: niket1322git Date: Fri, 24 Feb 2023 21:16:12 +0530 Subject: tdf#143148 Use pragma once instead of include guards Change-Id: I0f531280f4d85de3eae6de36bfba975e96d8e7fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147661 Reviewed-by: Julien Nabet Tested-by: Jenkins --- linguistic/source/convdic.hxx | 5 +---- linguistic/source/convdiclist.hxx | 5 +---- linguistic/source/defs.hxx | 6 +----- linguistic/source/dicimp.hxx | 6 +----- linguistic/source/dlistimp.hxx | 5 +---- linguistic/source/gciterator.hxx | 6 +----- linguistic/source/hhconvdic.hxx | 5 +---- linguistic/source/hyphdsp.hxx | 7 +------ linguistic/source/lngopt.hxx | 5 +---- linguistic/source/lngsvcmgr.hxx | 6 +----- linguistic/source/spelldsp.hxx | 6 +----- 11 files changed, 11 insertions(+), 51 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/convdic.hxx b/linguistic/source/convdic.hxx index e5f1d4bea69a..a0501e2ddf1b 100644 --- a/linguistic/source/convdic.hxx +++ b/linguistic/source/convdic.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_LINGUISTIC_SOURCE_CONVDIC_HXX -#define INCLUDED_LINGUISTIC_SOURCE_CONVDIC_HXX +#pragma once #include #include @@ -121,6 +120,4 @@ public: void RemoveEntry( const OUString &rLeftText, const OUString &rRightText ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/convdiclist.hxx b/linguistic/source/convdiclist.hxx index 11ab399aae90..5176244403cd 100644 --- a/linguistic/source/convdiclist.hxx +++ b/linguistic/source/convdiclist.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_CONVDICLIST_HXX -#define INCLUDED_LINGUISTIC_SOURCE_CONVDICLIST_HXX +#pragma once #include #include @@ -85,6 +84,4 @@ public: void FlushDics(); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/defs.hxx b/linguistic/source/defs.hxx index 7e3d658956e5..7d8995828d03 100644 --- a/linguistic/source/defs.hxx +++ b/linguistic/source/defs.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_DEFS_HXX -#define INCLUDED_LINGUISTIC_SOURCE_DEFS_HXX +#pragma once #include #include @@ -88,7 +87,4 @@ protected: ~LinguDispatcher() {} }; - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx index 3d5233a887ac..507e13a5aa58 100644 --- a/linguistic/source/dicimp.hxx +++ b/linguistic/source/dicimp.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_DICIMP_HXX -#define INCLUDED_LINGUISTIC_SOURCE_DICIMP_HXX +#pragma once #include #include @@ -168,7 +167,4 @@ public: getReplacementText() override; }; - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/dlistimp.hxx b/linguistic/source/dlistimp.hxx index 97ae91f7c84f..9d9e7d0882fb 100644 --- a/linguistic/source/dlistimp.hxx +++ b/linguistic/source/dlistimp.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_DLISTIMP_HXX -#define INCLUDED_LINGUISTIC_SOURCE_DLISTIMP_HXX +#pragma once #include #include @@ -116,6 +115,4 @@ public: void SaveDics(); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/gciterator.hxx b/linguistic/source/gciterator.hxx index c4cc076b3c9b..f35c8b412ef9 100644 --- a/linguistic/source/gciterator.hxx +++ b/linguistic/source/gciterator.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_GCITERATOR_HXX -#define INCLUDED_LINGUISTIC_SOURCE_GCITERATOR_HXX +#pragma once #include #include @@ -205,7 +204,4 @@ private: std::map maMap; }; - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/hhconvdic.hxx b/linguistic/source/hhconvdic.hxx index 107607be6d57..15a7831284f2 100644 --- a/linguistic/source/hhconvdic.hxx +++ b/linguistic/source/hhconvdic.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_HHCONVDIC_HXX -#define INCLUDED_LINGUISTIC_SOURCE_HHCONVDIC_HXX +#pragma once #include "convdic.hxx" @@ -40,6 +39,4 @@ public: virtual css::uno::Sequence SAL_CALL getSupportedServiceNames() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/hyphdsp.hxx b/linguistic/source/hyphdsp.hxx index a119224ca09a..348969f1906d 100644 --- a/linguistic/source/hyphdsp.hxx +++ b/linguistic/source/hyphdsp.hxx @@ -17,9 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_HYPHDSP_HXX -#define INCLUDED_LINGUISTIC_SOURCE_HYPHDSP_HXX - +#pragma once #include #include @@ -125,7 +123,4 @@ inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > return xDicList; } - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx index 896e345edb74..d466acd32004 100644 --- a/linguistic/source/lngopt.hxx +++ b/linguistic/source/lngopt.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_LNGOPT_HXX -#define INCLUDED_LINGUISTIC_SOURCE_LNGOPT_HXX +#pragma once #include #include @@ -197,6 +196,4 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx index 76cb7d182ac9..f21dc70a1b8c 100644 --- a/linguistic/source/lngsvcmgr.hxx +++ b/linguistic/source/lngsvcmgr.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_LNGSVCMGR_HXX -#define INCLUDED_LINGUISTIC_SOURCE_LNGSVCMGR_HXX +#pragma once #include #include @@ -161,7 +160,4 @@ public: const css::uno::Reference< css::linguistic2::XLinguServiceEventBroadcaster > &rxBroadcaster ); }; - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx index b617f749877e..c93560441333 100644 --- a/linguistic/source/spelldsp.hxx +++ b/linguistic/source/spelldsp.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_LINGUISTIC_SOURCE_SPELLDSP_HXX -#define INCLUDED_LINGUISTIC_SOURCE_SPELLDSP_HXX +#pragma once #include "defs.hxx" #include @@ -135,7 +134,4 @@ inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > return m_xDicList; } - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit