From 11aa7dc7a6009c02e681f41f7255902fe578ab7e Mon Sep 17 00:00:00 2001 From: Philipp Hofer Date: Thu, 12 Nov 2020 12:59:08 +0100 Subject: tdf#123936 Formatting files in module helpcompiler with clang-format Change-Id: Ibf7baa3de0a8cd7952044909c00c55e7c5b008a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105675 Tested-by: Jenkins Reviewed-by: Christian Lohmaier --- helpcompiler/source/HelpLinker_main.cxx | 10 +++++----- helpcompiler/source/LuceneHelper.cxx | 6 +++--- helpcompiler/source/LuceneHelper.hxx | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'helpcompiler') diff --git a/helpcompiler/source/HelpLinker_main.cxx b/helpcompiler/source/HelpLinker_main.cxx index 36826b49209c..5c8fe8807336 100644 --- a/helpcompiler/source/HelpLinker_main.cxx +++ b/helpcompiler/source/HelpLinker_main.cxx @@ -23,25 +23,25 @@ #include #include -SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { +SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) +{ std::vector args; for (int i = 1; i < argc; ++i) args.push_back(std::string(argv[i])); try { std::unique_ptr pHelpLinker(new HelpLinker()); - pHelpLinker->main( args ); + pHelpLinker->main(args); } - catch( const HelpProcessingException& e ) + catch (const HelpProcessingException& e) { std::cerr << e.m_aErrorMsg; exit(1); } - catch (const std::exception &e) + catch (const std::exception& e) { std::cerr << e.what(); exit(1); } return 0; } - diff --git a/helpcompiler/source/LuceneHelper.cxx b/helpcompiler/source/LuceneHelper.cxx index 7002162a7862..d6a2de2523e8 100644 --- a/helpcompiler/source/LuceneHelper.cxx +++ b/helpcompiler/source/LuceneHelper.cxx @@ -9,7 +9,7 @@ #include "LuceneHelper.hxx" -std::vector OUStringToTCHARVec(OUString const &rStr) +std::vector OUStringToTCHARVec(OUString const& rStr) { //UTF-16 if (sizeof(TCHAR) == sizeof(sal_Unicode)) @@ -17,7 +17,7 @@ std::vector OUStringToTCHARVec(OUString const &rStr) //UTF-32 std::vector aRet; - for (sal_Int32 nStrIndex = 0; nStrIndex < rStr.getLength(); ) + for (sal_Int32 nStrIndex = 0; nStrIndex < rStr.getLength();) { const sal_uInt32 nCode = rStr.iterateCodePoints(&nStrIndex); aRet.push_back(nCode); @@ -26,7 +26,7 @@ std::vector OUStringToTCHARVec(OUString const &rStr) return aRet; } -OUString TCHARArrayToOUString(TCHAR const *str) +OUString TCHARArrayToOUString(TCHAR const* str) { // UTF-16 if (sizeof(TCHAR) == sizeof(sal_Unicode)) diff --git a/helpcompiler/source/LuceneHelper.hxx b/helpcompiler/source/LuceneHelper.hxx index a84346e25faf..781f30bba416 100644 --- a/helpcompiler/source/LuceneHelper.hxx +++ b/helpcompiler/source/LuceneHelper.hxx @@ -11,20 +11,20 @@ #define INCLUDED_HELPCOMPILER_SOURCE_LUCENEHELPER_HXX #if defined(__GNUC__) -# pragma GCC visibility push (default) +#pragma GCC visibility push(default) #endif #include #if defined(__GNUC__) -# pragma GCC visibility pop +#pragma GCC visibility pop #endif #include #include -std::vector OUStringToTCHARVec(OUString const &rStr); -OUString TCHARArrayToOUString(TCHAR const *str); +std::vector OUStringToTCHARVec(OUString const& rStr); +OUString TCHARArrayToOUString(TCHAR const* str); #endif -- cgit