summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMücahid Aydin <mucahidaydin047@gmail.com>2020-11-21 12:59:58 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-11-21 18:27:56 +0100
commit2292ad256f6b3167a0fdb99f4b28064c75616751 (patch)
tree5f9cbd0462a84ee85fc8df3cd0c9d1704299a0ea /sw/source
parent635a77ddc06ddbaaf6eba2d978d2187ddeaa80b9 (diff)
tdf#124176: Use pragma once instead of include guards
Change-Id: I98697ff9c1da43ff53a2832da2579453c1c11533 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106312 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/porexp.hxx5
-rw-r--r--sw/source/core/text/porfld.hxx6
-rw-r--r--sw/source/core/text/porfly.hxx6
-rw-r--r--sw/source/core/text/porftn.hxx6
-rw-r--r--sw/source/core/text/porglue.hxx6
5 files changed, 9 insertions, 20 deletions
diff --git a/sw/source/core/text/porexp.hxx b/sw/source/core/text/porexp.hxx
index 418e6ff3c78d..c3cebe233715 100644
--- a/sw/source/core/text/porexp.hxx
+++ b/sw/source/core/text/porexp.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SW_SOURCE_CORE_TEXT_POREXP_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_POREXP_HXX
+#pragma once
#include "portxt.hxx"
@@ -69,6 +68,4 @@ public:
bool IsScript() const { return bScript; }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx
index 2aa554ca81e3..c7382d601d14 100644
--- a/sw/source/core/text/porfld.hxx
+++ b/sw/source/core/text/porfld.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_SW_SOURCE_CORE_TEXT_PORFLD_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_PORFLD_HXX
+
+#pragma once
#include <swtypes.hxx>
#include <swfont.hxx>
@@ -253,6 +253,4 @@ private:
bool m_bStart;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/text/porfly.hxx b/sw/source/core/text/porfly.hxx
index 1a318691c7c2..7227c76b95da 100644
--- a/sw/source/core/text/porfly.hxx
+++ b/sw/source/core/text/porfly.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_SW_SOURCE_CORE_TEXT_PORFLY_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_PORFLY_HXX
+
+#pragma once
#include <ascharanchoredobjectposition.hxx>
@@ -86,6 +86,4 @@ namespace sw
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/text/porftn.hxx b/sw/source/core/text/porftn.hxx
index 181d77a642f3..758d76dfde74 100644
--- a/sw/source/core/text/porftn.hxx
+++ b/sw/source/core/text/porftn.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_SW_SOURCE_CORE_TEXT_PORFTN_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_PORFTN_HXX
+
+#pragma once
#include "porfld.hxx"
@@ -97,6 +97,4 @@ public:
virtual SwFieldPortion *Clone( const OUString &rExpand ) const override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/text/porglue.hxx b/sw/source/core/text/porglue.hxx
index c2c9cd25204c..c022caddcb36 100644
--- a/sw/source/core/text/porglue.hxx
+++ b/sw/source/core/text/porglue.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_SW_SOURCE_CORE_TEXT_PORGLUE_HXX
-#define INCLUDED_SW_SOURCE_CORE_TEXT_PORGLUE_HXX
+
+#pragma once
#include "porlin.hxx"
@@ -83,6 +83,4 @@ inline void SwGluePortion::MoveHalfGlue( SwGluePortion *pTarget )
MoveGlue( pTarget, GetPrtGlue() / 2 );
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */