aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/function/GpgCommandExecutor.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-09-12 13:56:18 +0000
committerSaturneric <[email protected]>2021-09-12 13:56:18 +0000
commit5874147d9ec0f94a5058241a06c69f586b766a3b (patch)
tree9da52dd2d97af42952e17e570a630ee6e4aa008e /src/gpg/function/GpgCommandExecutor.cpp
parentAdd clang-related branch coverage options. (diff)
downloadGpgFrontend-5874147d9ec0f94a5058241a06c69f586b766a3b.tar.gz
GpgFrontend-5874147d9ec0f94a5058241a06c69f586b766a3b.zip
Continue to write core test code.
Diffstat (limited to 'src/gpg/function/GpgCommandExecutor.cpp')
-rw-r--r--src/gpg/function/GpgCommandExecutor.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpg/function/GpgCommandExecutor.cpp b/src/gpg/function/GpgCommandExecutor.cpp
index b5e6ccae..efe1446f 100644
--- a/src/gpg/function/GpgCommandExecutor.cpp
+++ b/src/gpg/function/GpgCommandExecutor.cpp
@@ -29,8 +29,7 @@ using boost::process::async_pipe;
void GpgFrontend::GpgCommandExecutor::Execute(
StringArgsRef arguments,
- const std::function<void(async_pipe &in, async_pipe &out)> &interact_func) {
-
+ const std::function<void(async_pipe& in, async_pipe& out)>& interact_func) {
using namespace boost::process;
boost::asio::io_service ios;
@@ -40,12 +39,12 @@ void GpgFrontend::GpgCommandExecutor::Execute(
async_pipe in_pipe_stream(ios);
async_pipe out_pipe_stream(ios);
- child child_process(ctx.GetInfo().appPath.c_str(), arguments,
+ child child_process(ctx.GetInfo().AppPath.c_str(), arguments,
std_out > in_pipe_stream, std_in < out_pipe_stream);
boost::asio::async_read(
in_pipe_stream, boost::asio::buffer(buf),
- [&](const boost::system::error_code &ec, std::size_t size) {
+ [&](const boost::system::error_code& ec, std::size_t size) {
interact_func(in_pipe_stream, out_pipe_stream);
});