mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
fix: Silence false positive cppcoreguidel-pro-bounds-array-to-pointer-decay
This commit is contained in:
parent
5fe2f53c7b
commit
1a5d0eddbe
|
@ -87,7 +87,11 @@ class Channel
|
||||||
|
|
||||||
struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; };
|
struct ChannelConfigurationError : std::runtime_error { using std::runtime_error::runtime_error; };
|
||||||
|
|
||||||
Socket& GetSocket() const { assert(fSocket); return *fSocket; }
|
Socket& GetSocket() const
|
||||||
|
{
|
||||||
|
assert(fSocket); // NOLINT(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
|
||||||
|
return *fSocket;
|
||||||
|
}
|
||||||
|
|
||||||
bool Bind(const std::string& address)
|
bool Bind(const std::string& address)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user