[Libreoffice-commits] core.git: sw/source
Mücahid Aydin (via logerrit)
logerrit at kemper.freedesktop.org
Sat Nov 21 17:28:39 UTC 2020
sw/source/core/text/porexp.hxx | 5 +----
sw/source/core/text/porfld.hxx | 6 ++----
sw/source/core/text/porfly.hxx | 6 ++----
sw/source/core/text/porftn.hxx | 6 ++----
sw/source/core/text/porglue.hxx | 6 ++----
5 files changed, 9 insertions(+), 20 deletions(-)
New commits:
commit 2292ad256f6b3167a0fdb99f4b28064c75616751
Author: Mücahid Aydin <mucahidaydin047 at gmail.com>
AuthorDate: Sat Nov 21 12:59:58 2020 +0000
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Nov 21 18:27:56 2020 +0100
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 at yahoo.fr>
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: */
More information about the Libreoffice-commits
mailing list