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> #include <sal/config.h>
namespace com::sun::star::uno { class UnoInterfaceReference; } namespace com::sun::star::uno
{
namespace binaryurp::current_context { class UnoInterfaceReference;
}
namespace binaryurp::current_context
{
com::sun::star::uno::UnoInterfaceReference get(); com::sun::star::uno::UnoInterfaceReference get();
void set(com::sun::star::uno::UnoInterfaceReference const & value); void set(com::sun::star::uno::UnoInterfaceReference const& value);
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -26,33 +26,39 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
namespace binaryurp { struct OutgoingRequest; } namespace binaryurp
namespace rtl { class ByteSequence; } {
struct OutgoingRequest;
}
namespace rtl
{
class ByteSequence;
}
namespace binaryurp { namespace binaryurp
{
class OutgoingRequests { class OutgoingRequests
{
public: public:
OutgoingRequests(); OutgoingRequests();
~OutgoingRequests(); ~OutgoingRequests();
void push(rtl::ByteSequence const & tid, OutgoingRequest const & request); void push(rtl::ByteSequence const& tid, OutgoingRequest const& request);
OutgoingRequest top(rtl::ByteSequence const & tid); OutgoingRequest top(rtl::ByteSequence const& tid);
void pop(rtl::ByteSequence const & tid) throw (); void pop(rtl::ByteSequence const& tid) throw();
private: private:
OutgoingRequests(const OutgoingRequests&) = delete; OutgoingRequests(const OutgoingRequests&) = delete;
OutgoingRequests& operator=(const OutgoingRequests&) = delete; OutgoingRequests& operator=(const OutgoingRequests&) = delete;
typedef std::map< rtl::ByteSequence, std::vector< OutgoingRequest > > Map; typedef std::map<rtl::ByteSequence, std::vector<OutgoingRequest>> Map;
osl::Mutex mutex_; osl::Mutex mutex_;
Map map_; Map map_;
}; };
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -30,35 +30,36 @@
#include "readerstate.hxx" #include "readerstate.hxx"
namespace binaryurp { namespace binaryurp
class Bridge; {
class Unmarshal; class Bridge;
class Unmarshal;
} }
namespace binaryurp { namespace binaryurp
{
class Reader: public salhelper::Thread { class Reader : public salhelper::Thread
{
public: public:
explicit Reader(rtl::Reference< Bridge > const & bridge); explicit Reader(rtl::Reference<Bridge> const& bridge);
private: private:
virtual ~Reader() override; virtual ~Reader() override;
virtual void execute() override; virtual void execute() override;
void readMessage(Unmarshal & unmarshal); void readMessage(Unmarshal& unmarshal);
void readReplyMessage(Unmarshal & unmarshal, sal_uInt8 flags1); void readReplyMessage(Unmarshal& unmarshal, sal_uInt8 flags1);
rtl::ByteSequence getTid(Unmarshal & unmarshal, bool newTid) const; rtl::ByteSequence getTid(Unmarshal& unmarshal, bool newTid) const;
rtl::Reference< Bridge > bridge_; rtl::Reference<Bridge> bridge_;
com::sun::star::uno::TypeDescription lastType_; com::sun::star::uno::TypeDescription lastType_;
OUString lastOid_; OUString lastOid_;
rtl::ByteSequence lastTid_; rtl::ByteSequence lastTid_;
ReaderState state_; ReaderState state_;
}; };
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

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

View File

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

View File

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