Skip to content

Commit

Permalink
Refs #20817: Uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: elianalf <[email protected]>
  • Loading branch information
elianalf committed May 29, 2024
1 parent 2b55f7a commit 8c22d90
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 51 deletions.
9 changes: 3 additions & 6 deletions examples/cpp/rtps/AsSocket/TestReaderSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@

#include <fastdds/rtps/reader/ReaderListener.h>

namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class ReaderHistory;
class RTPSReader;
Expand Down
9 changes: 3 additions & 6 deletions examples/cpp/rtps/AsSocket/TestWriterSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
#include <cstdio>
#include <string>

namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class WriterHistory;
class RTPSWriter;
Expand Down
9 changes: 3 additions & 6 deletions examples/cpp/rtps/Persistent/TestReaderPersistent.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@

#include <fastdds/rtps/reader/ReaderListener.h>

namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class ReaderHistory;
class RTPSReader;
Expand Down
9 changes: 3 additions & 6 deletions examples/cpp/rtps/Persistent/TestWriterPersistent.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@

#include <fastdds/rtps/writer/WriterListener.h>

namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class WriterHistory;
class RTPSWriter;
Expand Down
9 changes: 3 additions & 6 deletions examples/cpp/rtps/Registered/TestReaderRegistered.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
#include <fastdds/rtps/reader/ReaderListener.h>


namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class ReaderHistory;
class RTPSReader;
Expand Down
9 changes: 3 additions & 6 deletions examples/cpp/rtps/Registered/TestWriterRegistered.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@

#include <fastdds/rtps/writer/WriterListener.h>

namespace eprosima
{
namespace fastrtps
{
namespace rtps
{
namespace eprosima {
namespace fastrtps {
namespace rtps {
class RTPSParticipant;
class WriterHistory;
} // namespace rtps
Expand Down
30 changes: 23 additions & 7 deletions src/cpp/rtps/exceptions/Exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,45 @@

using namespace eprosima::fastrtps::rtps;

Exception::Exception(const char* const& message) : message_(message), minor_(0)
Exception::Exception(
const char* const& message)
: message_(message)
, minor_(0)
{
}

Exception::Exception(const Exception &ex) : message_(ex.message_), minor_(ex.minor_)
Exception::Exception(
const Exception& ex)
: message_(ex.message_)
, minor_(ex.minor_)
{
}

Exception::Exception(Exception&& ex) : message_(std::move(ex.message_)), minor_(ex.minor_)
Exception::Exception(
Exception&& ex)
: message_(std::move(ex.message_))
, minor_(ex.minor_)
{
}

Exception::Exception(const char* const& message, const int32_t minor) : message_(message), minor_(minor)
Exception::Exception(
const char* const& message,
const int32_t minor)
: message_(message)
, minor_(minor)
{
}

Exception& Exception::operator=(const Exception &ex)
Exception& Exception::operator =(
const Exception& ex)
{
message_ = ex.message_;
minor_ = ex.minor_;
return *this;
}

Exception& Exception::operator=(Exception&& ex)
Exception& Exception::operator =(
Exception&& ex)
{
message_ = std::move(ex.message_);
minor_ = ex.minor_;
Expand All @@ -55,7 +70,8 @@ const int32_t& Exception::minor() const
return minor_;
}

void Exception::minor(const int32_t &minor)
void Exception::minor(
const int32_t& minor)
{
minor_ = minor;
}
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/rtps/security/logging/LoggingLevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/*!
* @file LoggingLevel.cpp
*/
#include <fastdds/rtps/security/logging/LoggingLevel.h>
#include <rtps/security/logging/LoggingLevel.h>

#include <rtps/security/exceptions/SecurityException.h>

Expand Down
16 changes: 9 additions & 7 deletions src/cpp/security/cryptography/AESGCMGMAC_Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@
#ifndef _SECURITY_AUTHENTICATION_AESGCMGMAC_TYPES_H_
#define _SECURITY_AUTHENTICATION_AESGCMGMAC_TYPES_H_

#include <fastdds/rtps/attributes/PropertyPolicy.h>
#include <fastdds/rtps/security/common/Handle.h>
#include <fastdds/rtps/security/common/SharedSecretHandle.h>
#include <fastdds/rtps/security/accesscontrol/ParticipantSecurityAttributes.h>
#include <fastdds/rtps/security/accesscontrol/EndpointSecurityAttributes.h>
#include <rtps/security/exceptions/SecurityException.h>

#include <cassert>
#include <functional>
#include <limits>
#include <mutex>

#include <fastdds/rtps/attributes/PropertyPolicy.h>
#include <fastdds/rtps/attributes/EndpointSecurityAttributes.h>

#include <rtps/security/accesscontrol/ParticipantSecurityAttributes.h>
#include <rtps/security/common/Handle.h>
#include <rtps/security/common/SharedSecretHandle.h>
#include <rtps/security/exceptions/SecurityException.h>
#include <rtps/security/cryptography/CryptoTypes.h>

// Fix compilation error on Windows
#if defined(WIN32) && defined(max)
#undef max
Expand Down

0 comments on commit 8c22d90

Please sign in to comment.