[Libreoffice-commits] core.git: hwpfilter/source include/svx

Hakan Bakacak (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 27 09:10:35 UTC 2020


 hwpfilter/source/hstream.hxx      |    4 +---
 include/svx/swframeposstrings.hxx |    5 ++---
 include/svx/sxcaitm.hxx           |    6 ++----
 include/svx/tbxcolor.hxx          |    7 ++-----
 include/svx/xmlsecctrl.hxx        |    5 +----
 5 files changed, 8 insertions(+), 19 deletions(-)

New commits:
commit b29a3b6bac8162ccadc8dcf870bd73b9e1e964a2
Author:     Hakan Bakacak <hakanbakacak98 at gmail.com>
AuthorDate: Sun Jan 26 12:04:47 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Jan 27 10:10:04 2020 +0100

    tdf#124176: Use pragma once instead of include guards
    
    Change-Id: I65639e32765ba0804aeb5b5880eca2b5d186485e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87431
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
    Tested-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/hwpfilter/source/hstream.hxx b/hwpfilter/source/hstream.hxx
index e082e3aefd22..bf0d55442d9d 100644
--- a/hwpfilter/source/hstream.hxx
+++ b/hwpfilter/source/hstream.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
-#define INCLUDED_HWPFILTER_SOURCE_HSTREAM_H
+#pragma once
 
 #include <vector>
 
@@ -47,6 +46,5 @@ class HStream
         std::vector<byte> seq;
         size_t pos;
 };
-#endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/swframeposstrings.hxx b/include/svx/swframeposstrings.hxx
index c0ef3a3520d0..06cbc4028c6b 100644
--- a/include/svx/swframeposstrings.hxx
+++ b/include/svx/swframeposstrings.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_SVX_SWFRAMEPOSSTRINGS_HXX
-#define INCLUDED_SVX_SWFRAMEPOSSTRINGS_HXX
+
+#pragma once
 
 #include <rtl/ustring.hxx>
 #include <svx/svxdllapi.h>
@@ -78,6 +78,5 @@ public:
     };
     static OUString GetString(StringId eId);
 };
-#endif
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/sxcaitm.hxx b/include/svx/sxcaitm.hxx
index 50ed46c0c5ce..fc36d007604a 100644
--- a/include/svx/sxcaitm.hxx
+++ b/include/svx/sxcaitm.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_SVX_SXCAITM_HXX
-#define INCLUDED_SVX_SXCAITM_HXX
+
+#pragma once
 
 #include <svx/svddef.hxx>
 
@@ -41,6 +41,4 @@ public:
     }
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/tbxcolor.hxx b/include/svx/tbxcolor.hxx
index 739bef3bbc15..b98b0be7b326 100644
--- a/include/svx/tbxcolor.hxx
+++ b/include/svx/tbxcolor.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_SVX_TBXCOLOR_HXX
-#define INCLUDED_SVX_TBXCOLOR_HXX
+
+#pragma once
 
 #include <com/sun/star/frame/XLayoutManager.hpp>
 #include <svx/svxdllapi.h>
@@ -52,7 +52,4 @@ namespace svx
 
 }
 
-
-#endif // INCLUDED_SVX_TBXCOLOR_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx
index 56b58dc2b3ef..5ba255a5ee9c 100644
--- a/include/svx/xmlsecctrl.hxx
+++ b/include/svx/xmlsecctrl.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_SVX_XMLSECCTRL_HXX
-#define INCLUDED_SVX_XMLSECCTRL_HXX
+#pragma once
 
 #include <memory>
 #include <sfx2/stbitem.hxx>
@@ -44,6 +43,4 @@ public:
     virtual void    Command( const CommandEvent& rCEvt ) override;
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list