Commit 693bd2b7 authored by Ronan's avatar Ronan
Browse files

fix(Core): little performance fixes

parent efb0bd5c
......@@ -44,10 +44,7 @@ namespace Cpim {
public:
HeaderNode () = default;
explicit HeaderNode (const Header &header) {
mName = header.getName();
mValue = header.getValue();
explicit HeaderNode (const Header &header) : mName(header.getName()), mValue(header.getValue()) {
// Generic header.
const GenericHeader *genericHeader = dynamic_cast<const GenericHeader *>(&header);
if (genericHeader) {
......
......@@ -33,7 +33,7 @@ public:
// Nothing for the moment.
private:
Core (CorePrivate &p);
explicit Core (CorePrivate &p);
L_DECLARE_PRIVATE(Core);
L_DISABLE_COPY(Core);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment