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);
void set(com::sun::star::uno::UnoInterfaceReference const& value);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -26,33 +26,39 @@
#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();
~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:
OutgoingRequests(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_;
Map map_;
};
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View file

@ -30,35 +30,36 @@
#include "readerstate.hxx"
namespace binaryurp {
class Bridge;
class Unmarshal;
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);
explicit Reader(rtl::Reference<Bridge> const& bridge);
private:
virtual ~Reader() 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_;
OUString lastOid_;
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