Skip to content

MessageNotification constructor is inefficient. #194

@YuriyGulyayev

Description

@YuriyGulyayev

To improve performance, in the
MessageNotification(const Message& msg)
constructor, the assignment to _msg should be replaced with initialization.

MessageNotification(const Message& msg)
  : _msg( msg )
{
  // I commented this out and added the initialization above.
    //_msg = msg;
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions