summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorniket1322git <niket78766@gmail.com>2023-02-24 21:16:12 +0530
committerJulien Nabet <serval2412@yahoo.fr>2023-02-28 17:03:39 +0000
commita38fbfbf2f2d63d01444f0a0382b72de3e0af578 (patch)
tree73675314fd426bb909fe40da3df68789c0ab36e8 /linguistic
parentc026b936404bd052fc74283d3cc2e0727ec4edb9 (diff)
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 <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdic.hxx5
-rw-r--r--linguistic/source/convdiclist.hxx5
-rw-r--r--linguistic/source/defs.hxx6
-rw-r--r--linguistic/source/dicimp.hxx6
-rw-r--r--linguistic/source/dlistimp.hxx5
-rw-r--r--linguistic/source/gciterator.hxx6
-rw-r--r--linguistic/source/hhconvdic.hxx5
-rw-r--r--linguistic/source/hyphdsp.hxx7
-rw-r--r--linguistic/source/lngopt.hxx5
-rw-r--r--linguistic/source/lngsvcmgr.hxx6
-rw-r--r--linguistic/source/spelldsp.hxx6
11 files changed, 11 insertions, 51 deletions
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 <com/sun/star/linguistic2/XConversionDictionary.hpp>
#include <com/sun/star/linguistic2/XConversionPropertyType.hpp>
@@ -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 <com/sun/star/linguistic2/XConversionDictionaryList.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -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 <com/sun/star/linguistic2/XSpellChecker.hpp>
#include <com/sun/star/linguistic2/XHyphenator.hpp>
@@ -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 <com/sun/star/linguistic2/XDictionary.hpp>
#include <com/sun/star/frame/XStorable.hpp>
@@ -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 <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -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 <com/sun/star/i18n/XBreakIterator.hpp>
#include <com/sun/star/lang/XComponent.hpp>
@@ -205,7 +204,4 @@ private:
std::map<OUString, css::uno::Any> 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<OUString> 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 <com/sun/star/linguistic2/XHyphenator.hpp>
#include <com/sun/star/linguistic2/XPossibleHyphens.hpp>
@@ -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 <cppuhelper/implbase.hxx>
#include <comphelper/interfacecontainer3.hxx>
@@ -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 <cppuhelper/implbase.hxx>
#include <comphelper/interfacecontainer3.hxx>
@@ -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 <linguistic/misc.hxx>
@@ -135,7 +134,4 @@ inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList >
return m_xDicList;
}
-
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */