mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Apply modernize-pass-by-value
This commit is contained in:
committed by
Dennis Klein
parent
c847a7ca02
commit
882edbbdb8
@@ -10,11 +10,12 @@
|
||||
#include <fairmq/tools/Strings.h>
|
||||
#include <fairmq/PropertyOutput.h>
|
||||
#include <algorithm>
|
||||
#include <utility> // move
|
||||
|
||||
struct MyClass
|
||||
{
|
||||
MyClass() = default;
|
||||
MyClass(const std::string& a) : msg(a) {}
|
||||
MyClass(std::string a) : msg(std::move(a)) {}
|
||||
MyClass(const MyClass&) = default;
|
||||
MyClass& operator=(const MyClass& b) = default;
|
||||
std::string msg;
|
||||
|
Reference in New Issue
Block a user