diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 12:49:11 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-13 15:13:02 +0100 |
commit | 31fbd2be47819796eb6e7c23a8fc23925004abd6 (patch) | |
tree | 7027357d0d4be921f0052fb1964b30888daaa022 /binaryurp | |
parent | ec35fc62993111e4e7dd917e7dbc91ef82b02f74 (diff) |
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>
Diffstat (limited to 'binaryurp')
-rw-r--r-- | binaryurp/source/currentcontext.hxx | 12 | ||||
-rw-r--r-- | binaryurp/source/outgoingrequests.hxx | 26 | ||||
-rw-r--r-- | binaryurp/source/reader.hxx | 25 | ||||
-rw-r--r-- | binaryurp/source/readerstate.hxx | 9 | ||||
-rw-r--r-- | binaryurp/source/specialfunctionids.hxx | 8 |
5 files changed, 45 insertions, 35 deletions
diff --git a/binaryurp/source/currentcontext.hxx b/binaryurp/source/currentcontext.hxx index a7a99cf4fec9..b5f55a8244c9 100644 --- a/binaryurp/source/currentcontext.hxx +++ b/binaryurp/source/currentcontext.hxx @@ -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: */ diff --git a/binaryurp/source/outgoingrequests.hxx b/binaryurp/source/outgoingrequests.hxx index 0aa7b57580d1..7816032596f1 100644 --- a/binaryurp/source/outgoingrequests.hxx +++ b/binaryurp/source/outgoingrequests.hxx @@ -26,33 +26,39 @@ #include <osl/mutex.hxx> -namespace binaryurp { struct OutgoingRequest; } -namespace rtl { class ByteSequence; } - -namespace binaryurp { +namespace binaryurp +{ +struct OutgoingRequest; +} +namespace rtl +{ +class ByteSequence; +} -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: */ diff --git a/binaryurp/source/reader.hxx b/binaryurp/source/reader.hxx index af9bae09524f..2f3ec0dd9e2e 100644 --- a/binaryurp/source/reader.hxx +++ b/binaryurp/source/reader.hxx @@ -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: */ diff --git a/binaryurp/source/readerstate.hxx b/binaryurp/source/readerstate.hxx index 33900ef4c34a..a93a45dfcc1d 100644 --- a/binaryurp/source/readerstate.hxx +++ b/binaryurp/source/readerstate.hxx @@ -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: */ diff --git a/binaryurp/source/specialfunctionids.hxx b/binaryurp/source/specialfunctionids.hxx index 3f885eff28b0..e2b6ae0f8134 100644 --- a/binaryurp/source/specialfunctionids.hxx +++ b/binaryurp/source/specialfunctionids.hxx @@ -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: */ |