summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMuluh MG Godson <godsonmuluh@gmail.com>2024-10-29 04:55:22 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-10-29 07:37:22 +0100
commit1feb2466dccc0eee66bbfd50aff23ad7864e0c94 (patch)
tree702b10cdc8a44a1facb8fe89f0bd345804c1bbd9 /sw
parent8f6cae354d0b068dc377583d5af12acc7dc9e675 (diff)
tdf#143148 Use #pragma once instead of include guards
Change-Id: Ib779717653f17fdb83319d65313ae1a0ffc8fd3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175768 Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/inc/pattern.hxx5
-rw-r--r--sw/source/uibase/inc/pggrid.hxx5
-rw-r--r--sw/source/uibase/inc/prcntfld.hxx6
-rw-r--r--sw/source/uibase/inc/pview.hxx6
-rw-r--r--sw/source/uibase/inc/redlndlg.hxx6
-rw-r--r--sw/source/uibase/inc/rowht.hxx5
6 files changed, 7 insertions, 26 deletions
diff --git a/sw/source/uibase/inc/pattern.hxx b/sw/source/uibase/inc/pattern.hxx
index 06bb5bb06e71..31ea461c4c72 100644
--- a/sw/source/uibase/inc/pattern.hxx
+++ b/sw/source/uibase/inc/pattern.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_PATTERN_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_PATTERN_HXX
+#pragma once
#include <sfx2/basedlgs.hxx>
@@ -28,6 +27,4 @@ public:
SwBackgroundDlg(weld::Window* pParent, const SfxItemSet& rSet);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/pggrid.hxx b/sw/source/uibase/inc/pggrid.hxx
index 12d6a8bae13d..58d5c9467188 100644
--- a/sw/source/uibase/inc/pggrid.hxx
+++ b/sw/source/uibase/inc/pggrid.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_SW_SOURCE_UIBASE_INC_PGGRID_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_PGGRID_HXX
+#pragma once
#include <sfx2/tabdlg.hxx>
#include "colex.hxx"
@@ -86,6 +85,4 @@ public:
virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/prcntfld.hxx b/sw/source/uibase/inc/prcntfld.hxx
index 3b4775e6a524..03a80b0530cd 100644
--- a/sw/source/uibase/inc/prcntfld.hxx
+++ b/sw/source/uibase/inc/prcntfld.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_SW_SOURCE_UIBASE_INC_PRCNTFLD_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_PRCNTFLD_HXX
+#pragma once
#include <svtools/unitconv.hxx>
#include <vcl/weld.hxx>
@@ -81,7 +80,4 @@ public:
void LockAutoCalculation(bool bLock) {m_bLockAutoCalculation = bLock;}
};
-
-#endif // INCLUDED_SW_SOURCE_UIBASE_INC_PRCNTFLD_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/pview.hxx b/sw/source/uibase/inc/pview.hxx
index b024f9e59fe5..5fb6ee3e4c28 100644
--- a/sw/source/uibase/inc/pview.hxx
+++ b/sw/source/uibase/inc/pview.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_SW_SOURCE_UIBASE_INC_PVIEW_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_PVIEW_HXX
+#pragma once
#include <tools/link.hxx>
#include <tools/fract.hxx>
@@ -297,7 +296,4 @@ public:
virtual ~SwPagePreview() override;
};
-
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx
index e38fd83f68b3..e56383203d7d 100644
--- a/sw/source/uibase/inc/redlndlg.hxx
+++ b/sw/source/uibase/inc/redlndlg.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_UIBASE_INC_REDLNDLG_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_REDLNDLG_HXX
+#pragma once
+
#include <swdllapi.h>
#include "chldwrap.hxx"
#include <docary.hxx>
@@ -174,6 +174,4 @@ public:
virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/uibase/inc/rowht.hxx b/sw/source/uibase/inc/rowht.hxx
index 59a51fc97abe..4579fa48e499 100644
--- a/sw/source/uibase/inc/rowht.hxx
+++ b/sw/source/uibase/inc/rowht.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_SW_SOURCE_UIBASE_INC_ROWHT_HXX
-#define INCLUDED_SW_SOURCE_UIBASE_INC_ROWHT_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -35,6 +34,4 @@ public:
void Apply();
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */