summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:03:16 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-21 13:19:17 +0100
commit01baeab99890e5650b3dabc15f8d900490a5a133 (patch)
tree64a1b30b20a53262605312fff4d035876fc7c811 /include/tools
parent0108cd51faf942b3fc3a292522d4b2f421f1cf45 (diff)
tdf#123936 Formatting files in module include with clang-format
Change-Id: I0507dd797cd5a35e0ae14f4b69ee4e172d08a71a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105681 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/contnr.hxx4
-rw-r--r--include/tools/datetimeutils.hxx6
-rw-r--r--include/tools/extendapplicationenvironment.hxx5
-rw-r--r--include/tools/pathutils.hxx12
-rw-r--r--include/tools/svlibrary.h2
-rw-r--r--include/tools/tenccvt.hxx10
-rw-r--r--include/tools/toolsdllapi.h4
7 files changed, 20 insertions, 23 deletions
diff --git a/include/tools/contnr.hxx b/include/tools/contnr.hxx
index 716cbf242bd1..3ff08c9688a1 100644
--- a/include/tools/contnr.hxx
+++ b/include/tools/contnr.hxx
@@ -21,8 +21,8 @@
#include <limits.h>
-#define TREELIST_APPEND (ULONG_MAX)
-#define TREELIST_ENTRY_NOTFOUND (ULONG_MAX)
+#define TREELIST_APPEND (ULONG_MAX)
+#define TREELIST_ENTRY_NOTFOUND (ULONG_MAX)
#endif
diff --git a/include/tools/datetimeutils.hxx b/include/tools/datetimeutils.hxx
index 28766ee8a968..3df6229cb574 100644
--- a/include/tools/datetimeutils.hxx
+++ b/include/tools/datetimeutils.hxx
@@ -13,13 +13,13 @@
#include <tools/datetime.hxx>
// This function converts a 'DateTime' object to an 'OString' object
-TOOLS_DLLPUBLIC OString DateTimeToOString( const DateTime& rDateTime );
+TOOLS_DLLPUBLIC OString DateTimeToOString(const DateTime& rDateTime);
// This function converts a 'Date' object to an 'OString' object in ISO-8601 representation
-TOOLS_DLLPUBLIC OString DateToOString( const Date& rDate );
+TOOLS_DLLPUBLIC OString DateToOString(const Date& rDate);
// This function converts a 'Date' object to an 'OString' object in DD/MM/YYYY format
-TOOLS_DLLPUBLIC OString DateToDDMMYYYYOString( const Date& rDate );
+TOOLS_DLLPUBLIC OString DateToDDMMYYYYOString(const Date& rDate);
#endif
diff --git a/include/tools/extendapplicationenvironment.hxx b/include/tools/extendapplicationenvironment.hxx
index 9a610a0b811e..0ca8ceca42d1 100644
--- a/include/tools/extendapplicationenvironment.hxx
+++ b/include/tools/extendapplicationenvironment.hxx
@@ -22,12 +22,11 @@
#include <sal/config.h>
#include <tools/toolsdllapi.h>
-namespace tools {
-
+namespace tools
+{
// Extend the environment of the process in a platform specific way as necessary
// for OOo-related applications; must be called first thing in main:
TOOLS_DLLPUBLIC void extendApplicationEnvironment();
-
}
#endif
diff --git a/include/tools/pathutils.hxx b/include/tools/pathutils.hxx
index 3fa5cc0d1e9d..045ec4b96bbe 100644
--- a/include/tools/pathutils.hxx
+++ b/include/tools/pathutils.hxx
@@ -29,15 +29,15 @@
// The compiled code is not part of the tl dynamic library, but is delivered as
// pathutils-obj and pathutils-slo objects (it is linked into special
// executables and dynamic libraries that do not link against OOo libraries):
-namespace tools {
-
+namespace tools
+{
/** Determine the filename part of a path.
@param path
A non-NULL pointer to a null-terminated path.
@return
A pointer to the trailing filename part of the given path.
*/
-WCHAR * filename(WCHAR * path);
+WCHAR* filename(WCHAR* path);
/** Concatenate two paths.
@@ -62,10 +62,8 @@ WCHAR * filename(WCHAR * path);
A pointer to the terminating null character of the concatenation, or NULL
if a failure occurred.
*/
-WCHAR * buildPath(
- WCHAR * path, WCHAR const * frontBegin, WCHAR const * frontEnd,
- WCHAR const * backBegin, std::size_t backLength);
-
+WCHAR* buildPath(WCHAR* path, WCHAR const* frontBegin, WCHAR const* frontEnd,
+ WCHAR const* backBegin, std::size_t backLength);
}
#endif
diff --git a/include/tools/svlibrary.h b/include/tools/svlibrary.h
index 2a46d8c88412..df3f7203140c 100644
--- a/include/tools/svlibrary.h
+++ b/include/tools/svlibrary.h
@@ -8,7 +8,7 @@
*/
#ifndef SVLIBRARY
-#define SVLIBRARY( Base ) SAL_MODULENAME( Base "lo" )
+#define SVLIBRARY(Base) SAL_MODULENAME(Base "lo")
#include <osl/module.h>
#endif
diff --git a/include/tools/tenccvt.hxx b/include/tools/tenccvt.hxx
index 4d1cdcff3177..1893c735518e 100644
--- a/include/tools/tenccvt.hxx
+++ b/include/tools/tenccvt.hxx
@@ -27,20 +27,20 @@
/// return an encoding which has more defined Characters as the given
/// encoding, but have the same definition for the defined characters
/// e.g.: windows-1252 for iso-8859-1 or windows-1254 for iso-8859-9
-TOOLS_DLLPUBLIC rtl_TextEncoding GetExtendedCompatibilityTextEncoding( rtl_TextEncoding eEncoding );
+TOOLS_DLLPUBLIC rtl_TextEncoding GetExtendedCompatibilityTextEncoding(rtl_TextEncoding eEncoding);
/// return an encoding which has more defined Characters as the given
/// encoding. The encodings could be different.
/// e.g.: windows-1251 for iso-8859-5
-TOOLS_DLLPUBLIC rtl_TextEncoding GetExtendedTextEncoding( rtl_TextEncoding eEncoding );
+TOOLS_DLLPUBLIC rtl_TextEncoding GetExtendedTextEncoding(rtl_TextEncoding eEncoding);
/// if the given encoding is an multi-byte encoding (which allows more than
/// one byte per char, e.g. UTF-8 or Shift-JIS), a one-byte encoding
/// is returned (normally windows-1252).
-rtl_TextEncoding GetOneByteTextEncoding( rtl_TextEncoding eEncoding );
+rtl_TextEncoding GetOneByteTextEncoding(rtl_TextEncoding eEncoding);
-TOOLS_DLLPUBLIC rtl_TextEncoding GetSOLoadTextEncoding( rtl_TextEncoding eEncoding );
-TOOLS_DLLPUBLIC rtl_TextEncoding GetSOStoreTextEncoding( rtl_TextEncoding eEncoding );
+TOOLS_DLLPUBLIC rtl_TextEncoding GetSOLoadTextEncoding(rtl_TextEncoding eEncoding);
+TOOLS_DLLPUBLIC rtl_TextEncoding GetSOStoreTextEncoding(rtl_TextEncoding eEncoding);
/**
* Given a Unicode character, return a legacy Microsoft Encoding which
diff --git a/include/tools/toolsdllapi.h b/include/tools/toolsdllapi.h
index 6c13b6f4024c..0ee778e6f086 100644
--- a/include/tools/toolsdllapi.h
+++ b/include/tools/toolsdllapi.h
@@ -23,9 +23,9 @@
#include <sal/types.h>
#if defined(TOOLS_DLLIMPLEMENTATION)
-#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
-#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
+#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define TOOLS_DLLPRIVATE SAL_DLLPRIVATE