1 | #include "GitExecResult.h" |
---|---|
2 | |
3 | GitExecResult::GitExecResult(bool ret, QString v) |
4 | : success(ret) |
5 | , output(std::move(v)) |
6 | { |
7 | } |
8 | |
9 | GitExecResult::GitExecResult(const QPair<bool, QString> &result) |
10 | : success(result.first) |
11 | , output(result.second) |
12 | { |
13 | } |
14 | |
15 | GitExecResult &GitExecResult::operator=(const QPair<bool, QString> &result) |
16 | { |
17 | success = result.first; |
18 | output = result.second; |
19 | |
20 | return *this; |
21 | } |
22 |