sw/source/ui/envelp/envfmt.hxx     |    5 +----
 sw/source/ui/envelp/envprt.hxx     |    5 +----
 sw/source/ui/envelp/labfmt.hxx     |    4 +---
 sw/source/ui/envelp/labprt.hxx     |    5 +----
 sw/source/ui/envelp/swuilabimp.hxx |    5 +----
 5 files changed, 5 insertions(+), 19 deletions(-)

New commits:
commit 3398a2bc324bb00c18071374cb33f97cd9902860
Author:     OmkarAcharekar <omkarachareka...@gmail.com>
AuthorDate: Sun Oct 16 03:29:57 2022 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Sun Oct 16 12:39:01 2022 +0200

    tdf#143148 Use pragma once in sw/source/ui/envelp
    
    Change-Id: Iff490b1ceb0bd73aa61fd7a92367d1e71b9f84ee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141422
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/sw/source/ui/envelp/envfmt.hxx b/sw/source/ui/envelp/envfmt.hxx
index fb089f8a3743..bdc42de6b55f 100644
--- a/sw/source/ui/envelp/envfmt.hxx
+++ b/sw/source/ui/envelp/envfmt.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_UI_ENVELP_ENVFMT_HXX
-#define INCLUDED_SW_SOURCE_UI_ENVELP_ENVFMT_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -74,6 +73,4 @@ public:
     virtual void Reset(const SfxItemSet* rSet) override;
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx
index 078efa0995c4..4cc3bf4f784b 100644
--- a/sw/source/ui/envelp/envprt.hxx
+++ b/sw/source/ui/envelp/envprt.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SW_SOURCE_UI_ENVELP_ENVPRT_HXX
-#define INCLUDED_SW_SOURCE_UI_ENVELP_ENVPRT_HXX
+#pragma once
 
 #include <sfx2/tabdlg.hxx>
 #include <vcl/print.hxx>
@@ -69,6 +68,4 @@ public:
     void SetPrt(Printer* pPrinter) { m_xPrt = pPrinter; }
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/labfmt.hxx b/sw/source/ui/envelp/labfmt.hxx
index b6a7f491505a..bfb1ef309738 100644
--- a/sw/source/ui/envelp/labfmt.hxx
+++ b/sw/source/ui/envelp/labfmt.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_UI_ENVELP_LABFMT_HXX
-#define INCLUDED_SW_SOURCE_UI_ENVELP_LABFMT_HXX
+#pragma once
 
 #include <labimg.hxx>
 #include <label.hxx>
@@ -137,6 +136,5 @@ public:
     }
     bool GetLabel(SwLabItem& rItem);
 };
-#endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/labprt.hxx b/sw/source/ui/envelp/labprt.hxx
index 6df616aa68bf..66a4c1365725 100644
--- a/sw/source/ui/envelp/labprt.hxx
+++ b/sw/source/ui/envelp/labprt.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_UI_ENVELP_LABPRT_HXX
-#define INCLUDED_SW_SOURCE_UI_ENVELP_LABPRT_HXX
+#pragma once
 
 #include <sfx2/tabdlg.hxx>
 
@@ -61,6 +60,4 @@ public:
     Printer* GetPrt() { return m_pPrinter; }
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/envelp/swuilabimp.hxx 
b/sw/source/ui/envelp/swuilabimp.hxx
index 10ab6fe71579..222c9fd911cc 100644
--- a/sw/source/ui/envelp/swuilabimp.hxx
+++ b/sw/source/ui/envelp/swuilabimp.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_UI_ENVELP_SWUILABIMP_HXX
-#define INCLUDED_SW_SOURCE_UI_ENVELP_SWUILABIMP_HXX
+#pragma once
 
 #include <label.hxx>
 #include <labimg.hxx>
@@ -143,6 +142,4 @@ public:
     virtual void Reset(const SfxItemSet* rSet) override;
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to