tdf#123936 Formatting files in module binaryurp with clang-format

Change-Id: If0965d1d1fa500d74bad16871f7036fe4bb6d869
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105647
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
Philipp Hofer
2020-11-12 12:49:11 +01:00
committed by Christian Lohmaier
parent ec35fc6299
commit 31fbd2be47
6 changed files with 45 additions and 40 deletions

View File

@@ -21,14 +21,16 @@
#include <sal/config.h>
namespace com::sun::star::uno { class UnoInterfaceReference; }
namespace binaryurp::current_context {
namespace com::sun::star::uno
{
class UnoInterfaceReference;
}
namespace binaryurp::current_context
{
com::sun::star::uno::UnoInterfaceReference get();
void set(com::sun::star::uno::UnoInterfaceReference const& value);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -26,12 +26,19 @@
#include <osl/mutex.hxx>
namespace binaryurp { struct OutgoingRequest; }
namespace rtl { class ByteSequence; }
namespace binaryurp
{
struct OutgoingRequest;
}
namespace rtl
{
class ByteSequence;
}
namespace binaryurp {
class OutgoingRequests {
namespace binaryurp
{
class OutgoingRequests
{
public:
OutgoingRequests();
@@ -52,7 +59,6 @@ private:
osl::Mutex mutex_;
Map map_;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -30,14 +30,16 @@
#include "readerstate.hxx"
namespace binaryurp {
namespace binaryurp
{
class Bridge;
class Unmarshal;
}
namespace binaryurp {
class Reader: public salhelper::Thread {
namespace binaryurp
{
class Reader : public salhelper::Thread
{
public:
explicit Reader(rtl::Reference<Bridge> const& bridge);
@@ -58,7 +60,6 @@ private:
rtl::ByteSequence lastTid_;
ReaderState state_;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -27,12 +27,14 @@
#include "cache.hxx"
namespace binaryurp {
struct ReaderState {
namespace binaryurp
{
struct ReaderState
{
private:
ReaderState(const ReaderState&) = delete;
ReaderState& operator=(const ReaderState&) = delete;
public:
ReaderState() {}
@@ -40,7 +42,6 @@ public:
OUString oidCache[cache::size];
rtl::ByteSequence tidCache[cache::size];
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -21,9 +21,10 @@
#include <sal/config.h>
namespace binaryurp {
enum SpecialFunctionIds {
namespace binaryurp
{
enum SpecialFunctionIds
{
SPECIAL_FUNCTION_ID_QUERY_INTERFACE = 0,
SPECIAL_FUNCTION_ID_RESERVED = 1,
@@ -34,7 +35,6 @@ enum SpecialFunctionIds {
SPECIAL_FUNCTION_ID_COMMIT_CHANGE = 5
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -440,7 +440,6 @@ binaryurp/source/bridgefactory.cxx
binaryurp/source/bridgefactory.hxx
binaryurp/source/cache.hxx
binaryurp/source/currentcontext.cxx
binaryurp/source/currentcontext.hxx
binaryurp/source/incomingreply.hxx
binaryurp/source/incomingrequest.cxx
binaryurp/source/incomingrequest.hxx
@@ -450,13 +449,9 @@ binaryurp/source/marshal.cxx
binaryurp/source/marshal.hxx
binaryurp/source/outgoingrequest.hxx
binaryurp/source/outgoingrequests.cxx
binaryurp/source/outgoingrequests.hxx
binaryurp/source/proxy.cxx
binaryurp/source/proxy.hxx
binaryurp/source/reader.cxx
binaryurp/source/reader.hxx
binaryurp/source/readerstate.hxx
binaryurp/source/specialfunctionids.hxx
binaryurp/source/unmarshal.cxx
binaryurp/source/unmarshal.hxx
binaryurp/source/writer.cxx