summaryrefslogtreecommitdiff
path: root/editeng/inc
diff options
context:
space:
mode:
authorGeorge Bateman <george.bateman16@gmail.com>2020-09-13 12:15:12 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-09-13 17:52:06 +0200
commit66253cace2db6026ec636a4a8b6062f125957da7 (patch)
tree37b35822de8adf2a3c6ac63667a702f34e24e889 /editeng/inc
parent3dbc14db0aad072844b30e873c2d53978ea8e1c3 (diff)
tdf#124176 Use #pragma once in editeng
This commit was carried out by a Python script, source of which is at https://bugs.documentfoundation.org/show_bug.cgi?id=124176#c97. Change-Id: Ib435cc551e1fa301bf4ee3e796241e6b9219dc87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102576 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'editeng/inc')
-rw-r--r--editeng/inc/editattr.hxx5
-rw-r--r--editeng/inc/editdoc.hxx5
-rw-r--r--editeng/inc/editxml.hxx5
-rw-r--r--editeng/inc/edtspell.hxx5
-rw-r--r--editeng/inc/eerdll2.hxx5
-rw-r--r--editeng/inc/helpids.h5
-rw-r--r--editeng/inc/strings.hrc5
-rw-r--r--editeng/inc/unomodel.hxx5
8 files changed, 8 insertions, 32 deletions
diff --git a/editeng/inc/editattr.hxx b/editeng/inc/editattr.hxx
index 85df8454dccc..f0a6ec58da76 100644
--- a/editeng/inc/editattr.hxx
+++ b/editeng/inc/editattr.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_INC_EDITATTR_HXX
-#define INCLUDED_EDITENG_INC_EDITATTR_HXX
+#pragma once
#include <editeng/eeitem.hxx>
#include <svl/poolitem.hxx>
@@ -405,6 +404,4 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 2a5fc1e3f8de..f4ef714999e9 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_INC_EDITDOC_HXX
-#define INCLUDED_EDITENG_INC_EDITDOC_HXX
+#pragma once
#include "editattr.hxx"
#include "edtspell.hxx"
@@ -829,6 +828,4 @@ private:
virtual ~EditEngineItemPool() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editxml.hxx b/editeng/inc/editxml.hxx
index a3918e1c5397..51ded36f684e 100644
--- a/editeng/inc/editxml.hxx
+++ b/editeng/inc/editxml.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_INC_EDITXML_HXX
-#define INCLUDED_EDITENG_INC_EDITXML_HXX
+#pragma once
class EditEngine;
class SvStream;
@@ -31,7 +30,5 @@ extern void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESele
/** this function imports xml from the stream into the selected of an edit engine */
extern EditPaM SvxReadXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& rSel );
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/edtspell.hxx b/editeng/inc/edtspell.hxx
index efd9272f4859..eaf73b8908de 100644
--- a/editeng/inc/edtspell.hxx
+++ b/editeng/inc/edtspell.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_INC_EDTSPELL_HXX
-#define INCLUDED_EDITENG_INC_EDTSPELL_HXX
+#pragma once
#include <editeng/splwrap.hxx>
#include <editeng/svxacorr.hxx>
@@ -141,6 +140,4 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/eerdll2.hxx b/editeng/inc/eerdll2.hxx
index e9f271bac447..1d98ddc6d75c 100644
--- a/editeng/inc/eerdll2.hxx
+++ b/editeng/inc/eerdll2.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_INC_EERDLL2_HXX
-#define INCLUDED_EDITENG_INC_EERDLL2_HXX
+#pragma once
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
#include <editeng/forbiddencharacterstable.hxx>
@@ -65,6 +64,4 @@ public:
css::uno::Reference< css::linguistic2::XLanguageGuessing > const & GetLanguageGuesser();
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/helpids.h b/editeng/inc/helpids.h
index 5105dbd46b0f..8c4639e8951d 100644
--- a/editeng/inc/helpids.h
+++ b/editeng/inc/helpids.h
@@ -16,12 +16,9 @@
* 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_EDITENG_INC_HELPIDS_H
-#define INCLUDED_EDITENG_INC_HELPIDS_H
+#pragma once
#define HID_EDITENG_SPELLER_WORDLANGUAGE "EDITENG_HID_EDITENG_SPELLER_WORDLANGUAGE"
#define HID_EDITENG_SPELLER_PARALANGUAGE "EDITENG_HID_EDITENG_SPELLER_PARALANGUAGE"
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/strings.hrc b/editeng/inc/strings.hrc
index 7ed30a3ef599..813fa1f92591 100644
--- a/editeng/inc/strings.hrc
+++ b/editeng/inc/strings.hrc
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_EDITENG_INC_UNITS_HRC
-#define INCLUDED_EDITENG_INC_UNITS_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -40,6 +39,4 @@ const char* RID_SVXITEMS_JUSTMETHOD[] =
NC_("RID_SVXITEMS_JUSTMETHOD_DISTRIBUTE", "Distributed Justify")
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/unomodel.hxx b/editeng/inc/unomodel.hxx
index 29e8fa18112e..cfe5b59ee24b 100644
--- a/editeng/inc/unomodel.hxx
+++ b/editeng/inc/unomodel.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_EDITENG_UNOMODEL_HXX
-#define INCLUDED_EDITENG_UNOMODEL_HXX
+#pragma once
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/ucb/XAnyCompareFactory.hpp>
@@ -66,6 +65,4 @@ public:
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */