Skip to content

Commit

Permalink
add explicit keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
smtrfnv committed May 2, 2024
1 parent 41f5651 commit 3b9d5fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion groups/nts/ntsa/ntsa_socketoption.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class SocketOption
/// Create a new socketoption having an undefined type. Optionally specify
/// a 'basicAllocator' used to supply memory. If 'basicAllocator' is 0, the
// currently installed default allocator is used.
SocketOption(bslma::Allocator* basicAllocator = 0);
explicit SocketOption(bslma::Allocator* basicAllocator = 0);

/// Create a new address having the same value as the specified 'other'
/// object. Optionally specify a 'basicAllocator' used to supply memory. If
Expand Down
2 changes: 1 addition & 1 deletion groups/nts/ntsa/ntsa_tcpcongestioncontrol.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TcpCongestionControl
/// Optionally specify a 'basicAllocator' used to supply memory. If
/// 'basicAllocator' is 0, the currently installed default allocator is
/// used.
TcpCongestionControl(bslma::Allocator* basicAllocator = 0);
explicit TcpCongestionControl(bslma::Allocator* basicAllocator = 0);

/// Create new TcpCongestionControl instance having the same value as the
/// specified `original`. Optionally specify a 'basicAllocator' used to
Expand Down

0 comments on commit 3b9d5fd

Please sign in to comment.