diff --git a/cpp/QrSegment.cpp b/cpp/QrSegment.cpp index 202e6c9..f711461 100644 --- a/cpp/QrSegment.cpp +++ b/cpp/QrSegment.cpp @@ -151,7 +151,7 @@ QrSegment QrSegment::makeEci(long assignVal) { } -QrSegment::QrSegment(const Mode &md, int numCh, const std::vector &dt) : +QrSegment::QrSegment(Mode md, int numCh, const std::vector &dt) : mode(md), numChars(numCh), data(dt) { @@ -160,7 +160,7 @@ QrSegment::QrSegment(const Mode &md, int numCh, const std::vector &dt) : } -QrSegment::QrSegment(const Mode &md, int numCh, std::vector &&dt) : +QrSegment::QrSegment(Mode md, int numCh, std::vector &&dt) : mode(md), numChars(numCh), data(std::move(dt)) { diff --git a/cpp/QrSegment.hpp b/cpp/QrSegment.hpp index a19c53f..779f063 100644 --- a/cpp/QrSegment.hpp +++ b/cpp/QrSegment.hpp @@ -152,13 +152,13 @@ class QrSegment final { /* * Creates a new QR Code data segment with the given parameters and data. */ - public: QrSegment(const Mode &md, int numCh, const std::vector &dt); + public: QrSegment(Mode md, int numCh, const std::vector &dt); /* * Creates a new QR Code data segment with the given parameters and data. */ - public: QrSegment(const Mode &md, int numCh, std::vector &&dt); + public: QrSegment(Mode md, int numCh, std::vector &&dt); /*---- Methods ----*/