[Libreoffice-commits] core.git: basic/source

Mesut Çifci (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 29 15:50:31 UTC 2019


 basic/source/runtime/comenumwrapper.hxx |    5 +----
 basic/source/runtime/ddectrl.hxx        |    5 +----
 basic/source/sbx/sbxdec.hxx             |    6 +-----
 basic/source/sbx/sbxres.hxx             |    6 +-----
 4 files changed, 4 insertions(+), 18 deletions(-)

New commits:
commit 53c9a6a0f133b188896eb1a3c40587d7a2c9277d
Author:     Mesut Çifci <mesutcifci97 at gmail.com>
AuthorDate: Thu Dec 19 12:43:51 2019 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Sun Dec 29 16:50:00 2019 +0100

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

diff --git a/basic/source/runtime/comenumwrapper.hxx b/basic/source/runtime/comenumwrapper.hxx
index 8af4e164b06c..5637a8b7c58b 100644
--- a/basic/source/runtime/comenumwrapper.hxx
+++ b/basic/source/runtime/comenumwrapper.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_BASIC_SOURCE_RUNTIME_COMENUMWRAPPER_HXX
-#define INCLUDED_BASIC_SOURCE_RUNTIME_COMENUMWRAPPER_HXX
+#pragma once
 
 #include <com/sun/star/container/XEnumeration.hpp>
 #include <com/sun/star/script/XInvocation.hpp>
@@ -42,6 +41,4 @@ public:
     virtual css::uno::Any SAL_CALL nextElement() override;
 };
 
-#endif // INCLUDED_BASIC_SOURCE_RUNTIME_COMENUMWRAPPER_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/runtime/ddectrl.hxx b/basic/source/runtime/ddectrl.hxx
index dc172d1143f0..3b4f3d9bb122 100644
--- a/basic/source/runtime/ddectrl.hxx
+++ b/basic/source/runtime/ddectrl.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_BASIC_SOURCE_RUNTIME_DDECTRL_HXX
-#define INCLUDED_BASIC_SOURCE_RUNTIME_DDECTRL_HXX
+#pragma once
 
 #include <tools/link.hxx>
 #include <vcl/errcode.hxx>
@@ -52,6 +51,4 @@ public:
     ErrCode Poke( size_t nChannel, const OUString& rItem, const OUString& rData );
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/sbx/sbxdec.hxx b/basic/source/sbx/sbxdec.hxx
index 85a85557d8df..3db396ea6cb4 100644
--- a/basic/source/sbx/sbxdec.hxx
+++ b/basic/source/sbx/sbxdec.hxx
@@ -17,9 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-
-#ifndef INCLUDED_BASIC_SOURCE_SBX_SBXDEC_HXX
-#define INCLUDED_BASIC_SOURCE_SBX_SBXDEC_HXX
+#pragma once
 
 #ifdef _WIN32
 #include <prewin.h>
@@ -98,6 +96,4 @@ public:
     friend CmpResult compare( const SbxDecimal &rLeft, const SbxDecimal &rRight );
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/source/sbx/sbxres.hxx b/basic/source/sbx/sbxres.hxx
index 995c31d53a3f..185dad4089ac 100644
--- a/basic/source/sbx/sbxres.hxx
+++ b/basic/source/sbx/sbxres.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_BASIC_SOURCE_SBX_SBXRES_HXX
-#define INCLUDED_BASIC_SOURCE_SBX_SBXRES_HXX
+#pragma once
 
 #include <rtl/ustring.hxx>
 
@@ -49,7 +48,4 @@ enum class StringId {
 
 OUString GetSbxRes( StringId );
 
-
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list