mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Modernize ctor
https://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html#pass-by-value-in-constructors
This commit is contained in:
parent
8e3f25851c
commit
fd2bac3e22
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (C) 2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
* Copyright (C) 2017-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||||
* *
|
* *
|
||||||
* This software is distributed under the terms of the *
|
* This software is distributed under the terms of the *
|
||||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||||
|
@ -8,15 +8,20 @@
|
||||||
|
|
||||||
#include <fairmq/Plugin.h>
|
#include <fairmq/Plugin.h>
|
||||||
#include <FairMQLogger.h>
|
#include <FairMQLogger.h>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
fair::mq::Plugin::Plugin(const string name, const Version version, const string maintainer, const string homepage, PluginServices* pluginServices)
|
fair::mq::Plugin::Plugin(string name,
|
||||||
: fkName{name}
|
Version version,
|
||||||
|
string maintainer,
|
||||||
|
string homepage,
|
||||||
|
PluginServices* pluginServices)
|
||||||
|
: fkName(std::move(name))
|
||||||
, fkVersion(version)
|
, fkVersion(version)
|
||||||
, fkMaintainer{maintainer}
|
, fkMaintainer(std::move(maintainer))
|
||||||
, fkHomepage{homepage}
|
, fkHomepage(std::move(homepage))
|
||||||
, fPluginServices{pluginServices}
|
, fPluginServices(pluginServices)
|
||||||
{
|
{
|
||||||
LOG(debug) << "Loaded plugin: " << *this;
|
LOG(debug) << "Loaded plugin: " << *this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Copyright (C) 2017 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
* Copyright (C) 2017-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
||||||
* *
|
* *
|
||||||
* This software is distributed under the terms of the *
|
* This software is distributed under the terms of the *
|
||||||
* GNU Lesser General Public Licence (LGPL) version 3, *
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
||||||
|
@ -44,7 +44,11 @@ class Plugin
|
||||||
using Version = tools::Version;
|
using Version = tools::Version;
|
||||||
|
|
||||||
Plugin() = delete;
|
Plugin() = delete;
|
||||||
Plugin(const std::string name, const Version version, const std::string maintainer, const std::string homepage, PluginServices* pluginServices);
|
Plugin(std::string name,
|
||||||
|
Version version,
|
||||||
|
std::string maintainer,
|
||||||
|
std::string homepage,
|
||||||
|
PluginServices* pluginServices);
|
||||||
|
|
||||||
Plugin(const Plugin&) = delete;
|
Plugin(const Plugin&) = delete;
|
||||||
Plugin operator=(const Plugin&) = delete;
|
Plugin operator=(const Plugin&) = delete;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user