mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
process: added move-aware Command(Argv) constructor.
This commit is contained in:
parent
55011e4a9d
commit
63f45f0dbc
@ -31,6 +31,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include <openvpn/common/size.hpp>
|
||||
#include <openvpn/common/action.hpp>
|
||||
@ -197,6 +198,13 @@ namespace openvpn {
|
||||
{
|
||||
typedef RCPtr<Command> Ptr;
|
||||
|
||||
Command() {}
|
||||
|
||||
Command(Argv argv_arg)
|
||||
: argv(std::move(argv_arg))
|
||||
{
|
||||
}
|
||||
|
||||
Command* copy() const
|
||||
{
|
||||
Command* ret = new Command;
|
||||
|
Loading…
Reference in New Issue
Block a user