hwpfilter/source/hfont.h   |    4 +---
 hwpfilter/source/hiodev.h  |    4 +---
 hwpfilter/source/hpara.h   |    5 +----
 hwpfilter/source/hstyle.h  |    4 +---
 hwpfilter/source/hutil.h   |    5 +----
 hwpfilter/source/hwplib.h  |    5 ++---
 hwpfilter/source/mapping.h |    5 +----
 hwpfilter/source/nodes.h   |    5 +----
 hwpfilter/source/solver.h  |    5 +----
 9 files changed, 10 insertions(+), 32 deletions(-)

New commits:
commit 30ea093fd65f5fb4807a6aa88b88c82130dfd719
Author:     Akshay Kumar Dubey <akshaymani...@gmail.com>
AuthorDate: Sat Jan 11 11:35:11 2025 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Sat Jan 11 19:36:53 2025 +0100

    tdf#143148 Use pragma once instead of include guards
    
    Change-Id: Ia1d2686020bdf8aae38f487e2468953cd0a389c7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180109
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/hwpfilter/source/hfont.h b/hwpfilter/source/hfont.h
index c9d2e9930ec8..406b999dff49 100644
--- a/hwpfilter/source/hfont.h
+++ b/hwpfilter/source/hfont.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HFONT_H
-#define INCLUDED_HWPFILTER_SOURCE_HFONT_H
+#pragma once
 
 #include <stdlib.h>
 #include <string.h>
@@ -64,6 +63,5 @@ class DLLEXPORT HWPFont final
 
         void Read( HWPFile &hwpf );
 };
-#endif                                            /* _HWPFONTS+H_ */
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hiodev.h b/hwpfilter/source/hiodev.h
index b6f2c7aa2be7..09cebcfe8be5 100644
--- a/hwpfilter/source/hiodev.h
+++ b/hwpfilter/source/hiodev.h
@@ -22,8 +22,7 @@
  * (C) 1999 Mizi Research, All rights are reserved
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HIODEV_H
-#define INCLUDED_HWPFILTER_SOURCE_HIODEV_H
+#pragma once
 
 #include <sal/config.h>
 
@@ -157,6 +156,5 @@ class HMemIODev final: public HIODev
     private:
         virtual void init() override;
 };
-#endif // INCLUDED_HWPFILTER_SOURCE_HIODEV_H
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hpara.h b/hwpfilter/source/hpara.h
index b057edcb816b..1749985c7327 100644
--- a/hwpfilter/source/hpara.h
+++ b/hwpfilter/source/hpara.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HPARA_H
-#define INCLUDED_HWPFILTER_SOURCE_HPARA_H
+#pragma once
 
 #include "hwplib.h"
 #include "hwpfile.h"
@@ -128,6 +127,4 @@ class DLLEXPORT HWPPara
         std::unique_ptr<HBox> readHBox(HWPFile &);
 };
 
-#endif // INCLUDED_HWPFILTER_SOURCE_HPARA_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hstyle.h b/hwpfilter/source/hstyle.h
index 851bd8d4d164..d55b2f19c6fc 100644
--- a/hwpfilter/source/hstyle.h
+++ b/hwpfilter/source/hstyle.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HSTYLE_H
-#define INCLUDED_HWPFILTER_SOURCE_HSTYLE_H
+#pragma once
 
 #include <stdlib.h>
 #include <string.h>
@@ -50,7 +49,6 @@ class DLLEXPORT HWPStyle
 
         void Read( HWPFile &hwpf );
 };
-#endif
 /* _HWPSTYLE+H_ */
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hutil.h b/hwpfilter/source/hutil.h
index d856b74de173..84660e03c61e 100644
--- a/hwpfilter/source/hutil.h
+++ b/hwpfilter/source/hutil.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HUTIL_H
-#define INCLUDED_HWPFILTER_SOURCE_HUTIL_H
+#pragma once
 
 #include "hbox.h"
 /**
@@ -30,6 +29,4 @@ void    num2roman(int num, char *buf);
  */
 void    str2hstr(const char *c, hchar *i);
 
-#endif                                            /* UTIL_H_*/
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/hwplib.h b/hwpfilter/source/hwplib.h
index 354cbce4b55c..d62266cc4e3c 100644
--- a/hwpfilter/source/hwplib.h
+++ b/hwpfilter/source/hwplib.h
@@ -17,8 +17,8 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HWPLIB_H
-#define INCLUDED_HWPFILTER_SOURCE_HWPLIB_H
+#pragma once
+
 #include "precompile.h"
 
 #include <limits>
@@ -217,6 +217,5 @@ enum DebugMask
 #  include <unistd.h>
 #  define DIRSEP '/'
 #endif
-#endif // INCLUDED_HWPFILTER_SOURCE_HWPLIB_H
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/mapping.h b/hwpfilter/source/mapping.h
index 5235f7e777d5..34d8687d9529 100644
--- a/hwpfilter/source/mapping.h
+++ b/hwpfilter/source/mapping.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_MAPPING_H
-#define INCLUDED_HWPFILTER_SOURCE_MAPPING_H
+#pragma once
 
 #include <string.h>
 #include <stdio.h>
@@ -390,6 +389,4 @@ hchar_string getMathMLEntity(const char *tex)
 }
 #endif
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/nodes.h b/hwpfilter/source/nodes.h
index dce473e13fa5..77f1f20d3973 100644
--- a/hwpfilter/source/nodes.h
+++ b/hwpfilter/source/nodes.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_NODES_H
-#define INCLUDED_HWPFILTER_SOURCE_NODES_H
+#pragma once
 
 #include <sal/config.h>
 
@@ -94,6 +93,4 @@ public:
 };
 extern std::vector<std::unique_ptr<Node>> nodelist;
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/hwpfilter/source/solver.h b/hwpfilter/source/solver.h
index 85467ff78e1e..26b86184f075 100644
--- a/hwpfilter/source/solver.h
+++ b/hwpfilter/source/solver.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_SOLVER_H
-#define INCLUDED_HWPFILTER_SOURCE_SOLVER_H
+#pragma once
 
 class mgcLinearSystemD
 {
@@ -36,6 +35,4 @@ public:
     //     b[N] is solution x to Ax = b
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to