@@ -86,13 +86,22 @@ class ClusterDataIdentity {
8686 bmqp_ctrlmsg::ClientIdentity d_identity;
8787
8888 public:
89+ // TRAITS
90+ BSLMF_NESTED_TRAIT_DECLARATION (ClusterDataIdentity,
91+ bslma::UsesBslmaAllocator)
92+
8993 // CREATORS
9094
91- // / Create a @bbref{mqbc::ClusterDataIdentity} with the specified `name`,
92- // / `description` and `identity`.
93- ClusterDataIdentity (const bsl::string& name,
94- const bsl::string& description,
95- const bmqp_ctrlmsg::ClientIdentity& identity);
95+ // / Create a @bbref{mqbc::ClusterDataIdentity}.
96+ // / @param name The cluster name.
97+ // / @param description The cluster description.
98+ // / @param identity The cluster identity.
99+ // / @param allocator Allocator to use, or use the default allocator if it
100+ // / is null.
101+ explicit ClusterDataIdentity (const bslstl::StringRef& name,
102+ const bslstl::StringRef& description,
103+ const bmqp_ctrlmsg::ClientIdentity& identity,
104+ bslma::Allocator* allocator = 0 );
96105
97106 // ACCESSORS
98107
@@ -303,12 +312,13 @@ class ClusterData {
303312
304313// CREATORS
305314inline ClusterDataIdentity::ClusterDataIdentity (
306- const bsl::string& name,
307- const bsl::string& description,
308- const bmqp_ctrlmsg::ClientIdentity& identity)
309- : d_name(name)
310- , d_description(description)
311- , d_identity(identity)
315+ const bslstl::StringRef& name,
316+ const bslstl::StringRef& description,
317+ const bmqp_ctrlmsg::ClientIdentity& identity,
318+ bslma::Allocator* allocator)
319+ : d_name(name, allocator)
320+ , d_description(description, allocator)
321+ , d_identity(identity, allocator)
312322{
313323 // NOTHING
314324}
0 commit comments