mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
fix: Silence false positive cppcoreguidel-pro-bounds-array-to-pointer-decay
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user