X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FShell.cpp;h=4d669095d83ca556a0a2a6ec29464f021ea944f9;hb=b4ef76f170b50709d127a00199e6cfa255b65be9;hp=cd3017acb0a2cb4a323d60c0975a6fb8f9d8c9fd;hpb=9f262c9ea92d4869715ca6f534c80075a8310ac1;p=awesomized%2Flibmemcached diff --git a/test/lib/Shell.cpp b/test/lib/Shell.cpp index cd3017ac..4d669095 100644 --- a/test/lib/Shell.cpp +++ b/test/lib/Shell.cpp @@ -1,7 +1,6 @@ #include "Shell.hpp" #include -#include bool Shell::run(const string &command_, string &output) { auto command = prepareCommand(command_); @@ -47,8 +46,8 @@ Shell::Shell(bool redirect_stderr) } } -Shell::Shell(const string &prefix_, bool redirect_stderr) -: prefix{prefix_} +Shell::Shell(string prefix_, bool redirect_stderr) +: prefix{move(prefix_)} , redirect{redirect_stderr} { if (!system(nullptr)) {