summaryrefslogtreecommitdiff
path: root/helpcompiler
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 12:59:08 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-13 15:18:57 +0100
commit11aa7dc7a6009c02e681f41f7255902fe578ab7e (patch)
tree18e3c6eea510143735a52f3bc5e5fc5c2982867c /helpcompiler
parent4d9e9f2125867adde3558b9866d08f7bafb4386b (diff)
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 <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'helpcompiler')
-rw-r--r--helpcompiler/source/HelpLinker_main.cxx10
-rw-r--r--helpcompiler/source/LuceneHelper.cxx6
-rw-r--r--helpcompiler/source/LuceneHelper.hxx8
3 files changed, 12 insertions, 12 deletions
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 <iostream>
#include <memory>
-SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
+{
std::vector<std::string> args;
for (int i = 1; i < argc; ++i)
args.push_back(std::string(argv[i]));
try
{
std::unique_ptr<HelpLinker> 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<TCHAR> OUStringToTCHARVec(OUString const &rStr)
+std::vector<TCHAR> OUStringToTCHARVec(OUString const& rStr)
{
//UTF-16
if (sizeof(TCHAR) == sizeof(sal_Unicode))
@@ -17,7 +17,7 @@ std::vector<TCHAR> OUStringToTCHARVec(OUString const &rStr)
//UTF-32
std::vector<TCHAR> 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<TCHAR> 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 <CLucene.h>
#if defined(__GNUC__)
-# pragma GCC visibility pop
+#pragma GCC visibility pop
#endif
#include <rtl/ustring.hxx>
#include <vector>
-std::vector<TCHAR> OUStringToTCHARVec(OUString const &rStr);
-OUString TCHARArrayToOUString(TCHAR const *str);
+std::vector<TCHAR> OUStringToTCHARVec(OUString const& rStr);
+OUString TCHARArrayToOUString(TCHAR const* str);
#endif