summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorUday Sharma <itsudayy@gmail.com>2023-02-11 23:04:38 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2023-03-16 09:25:32 +0000
commit0d8d0fb8932652f182c46805d5cf3ae7f6ebadd5 (patch)
treebed8bf4755e21466e23bb3585819349c088f77d7 /helpcompiler
parentc7aee57724828c4b9d67deb930f09c494ff4d811 (diff)
tdf#143148: Use pragma once instead of include guards
Change-Id: I6898acbf7c6c9de45bbfa6a32202acf302f92caa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146822 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/inc/HelpCompiler.hxx5
-rw-r--r--helpcompiler/inc/HelpLinker.hxx6
-rw-r--r--helpcompiler/source/LuceneHelper.hxx6
3 files changed, 3 insertions, 14 deletions
diff --git a/helpcompiler/inc/HelpCompiler.hxx b/helpcompiler/inc/HelpCompiler.hxx
index c66e705ae222..04562e9c41a7 100644
--- a/helpcompiler/inc/HelpCompiler.hxx
+++ b/helpcompiler/inc/HelpCompiler.hxx
@@ -16,9 +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_HELPCOMPILER_INC_HELPCOMPILER_HXX
-#define INCLUDED_HELPCOMPILER_INC_HELPCOMPILER_HXX
+#pragma once
#include <sal/config.h>
@@ -212,5 +210,4 @@ inline char tocharlower(char c)
rtl::toAsciiLowerCase(static_cast<unsigned char>(c)));
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/helpcompiler/inc/HelpLinker.hxx b/helpcompiler/inc/HelpLinker.hxx
index 5087e47ae08d..9645f7c4c67c 100644
--- a/helpcompiler/inc/HelpLinker.hxx
+++ b/helpcompiler/inc/HelpLinker.hxx
@@ -16,9 +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_HELPCOMPILER_INC_HELPLINKER_HXX
-#define INCLUDED_HELPCOMPILER_INC_HELPLINKER_HXX
+#pragma once
#include <memory>
#include <vector>
@@ -88,6 +86,4 @@ private:
const std::string& jarfileB, const std::string& titleB );
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/helpcompiler/source/LuceneHelper.hxx b/helpcompiler/source/LuceneHelper.hxx
index 781f30bba416..6e8208b1b20e 100644
--- a/helpcompiler/source/LuceneHelper.hxx
+++ b/helpcompiler/source/LuceneHelper.hxx
@@ -6,9 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-
-#ifndef INCLUDED_HELPCOMPILER_SOURCE_LUCENEHELPER_HXX
-#define INCLUDED_HELPCOMPILER_SOURCE_LUCENEHELPER_HXX
+#pragma once
#if defined(__GNUC__)
#pragma GCC visibility push(default)
@@ -26,6 +24,4 @@
std::vector<TCHAR> OUStringToTCHARVec(OUString const& rStr);
OUString TCHARArrayToOUString(TCHAR const* str);
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */