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

fix(Core): little performance fixes

parent efb0bd5c
...@@ -44,10 +44,7 @@ namespace Cpim { ...@@ -44,10 +44,7 @@ namespace Cpim {
public: public:
HeaderNode () = default; HeaderNode () = default;
explicit HeaderNode (const Header &header) { explicit HeaderNode (const Header &header) : mName(header.getName()), mValue(header.getValue()) {
mName = header.getName();
mValue = header.getValue();
// Generic header. // Generic header.
const GenericHeader *genericHeader = dynamic_cast<const GenericHeader *>(&header); const GenericHeader *genericHeader = dynamic_cast<const GenericHeader *>(&header);
if (genericHeader) { if (genericHeader) {
......
...@@ -33,7 +33,7 @@ public: ...@@ -33,7 +33,7 @@ public:
// Nothing for the moment. // Nothing for the moment.
private: private:
Core (CorePrivate &p); explicit Core (CorePrivate &p);
L_DECLARE_PRIVATE(Core); L_DECLARE_PRIVATE(Core);
L_DISABLE_COPY(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