From 1773b7daff1f4f896c1a1e71c78bde519be49140 Mon Sep 17 00:00:00 2001 From: Muhammad Ammar Date: Mon, 27 Apr 2026 15:29:27 +0500 Subject: [PATCH] tdf#143148 use pragma once in javaunohelper and jvmfwk headers Change-Id: Ib9cf17e19495e56cc831c1becc79e961b3fb3eb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204437 Tested-by: Julien Nabet Reviewed-by: Julien Nabet Tested-by: Jenkins --- javaunohelper/source/juhx-export-functions.hxx | 5 +---- javaunohelper/source/juhx-export-types.hxx | 5 +---- javaunohelper/source/vm.hxx | 5 +---- jvmfwk/inc/fwkbase.hxx | 6 ++---- jvmfwk/inc/libxmlutil.hxx | 5 ++--- 5 files changed, 7 insertions(+), 19 deletions(-) diff --git a/javaunohelper/source/juhx-export-functions.hxx b/javaunohelper/source/juhx-export-functions.hxx index 569822f2c53a..3215a59db326 100644 --- a/javaunohelper/source/juhx-export-functions.hxx +++ b/javaunohelper/source/juhx-export-functions.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_JAVAUNOHELPER_SOURCE_JUHX_EXPORT_FUNCTIONS_HXX -#define INCLUDED_JAVAUNOHELPER_SOURCE_JUHX_EXPORT_FUNCTIONS_HXX +#pragma once #include @@ -39,6 +38,4 @@ Java_com_sun_star_comp_helper_SharedLibraryLoader_component_1writeInfo; } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/javaunohelper/source/juhx-export-types.hxx b/javaunohelper/source/juhx-export-types.hxx index 8e2783452274..0018510f0694 100644 --- a/javaunohelper/source/juhx-export-types.hxx +++ b/javaunohelper/source/juhx-export-types.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_JAVAUNOHELPER_SOURCE_JUHX_EXPORT_TYPES_HXX -#define INCLUDED_JAVAUNOHELPER_SOURCE_JUHX_EXPORT_TYPES_HXX +#pragma once #include @@ -47,6 +46,4 @@ typedef jboolean JAVAUNOHELPER_DETAIL_CALLCONV Func_writeInfo( } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/javaunohelper/source/vm.hxx b/javaunohelper/source/vm.hxx index 6681dfffac21..23f842b0382b 100644 --- a/javaunohelper/source/vm.hxx +++ b/javaunohelper/source/vm.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_JAVAUNOHELPER_SOURCE_VM_HXX -#define INCLUDED_JAVAUNOHELPER_SOURCE_VM_HXX +#pragma once #include @@ -50,6 +49,4 @@ install_vm_singleton( } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/jvmfwk/inc/fwkbase.hxx b/jvmfwk/inc/fwkbase.hxx index 61c3fa500138..b3ddd24f303d 100644 --- a/jvmfwk/inc/fwkbase.hxx +++ b/jvmfwk/inc/fwkbase.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_JVMFWK_INC_FWKBASE_HXX -#define INCLUDED_JVMFWK_INC_FWKBASE_HXX + +#pragma once #include @@ -125,6 +125,4 @@ bool wasJavaSelectedInSameProcess(); OUString getApplicationClassPath(); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/jvmfwk/inc/libxmlutil.hxx b/jvmfwk/inc/libxmlutil.hxx index 2599cff50596..5c298fd9f4da 100644 --- a/jvmfwk/inc/libxmlutil.hxx +++ b/jvmfwk/inc/libxmlutil.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_JVMFWK_INC_LIBXMLUTIL_HXX -#define INCLUDED_JVMFWK_INC_LIBXMLUTIL_HXX + +#pragma once #include @@ -96,6 +96,5 @@ public: operator OString() { return reinterpret_cast(_object); } }; } -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */