diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-10 19:37:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-10 23:24:26 +0200 |
| commit | 60a0242e7c5275b73bf3007d3245b8f35bb77c18 (patch) | |
| tree | 1f362ca696b695964e9123229b84f401b7b7580b /src/KM_util.cpp | |
| parent | af1cabad632b5ad811c1020f6084b5063a36b407 (diff) | |
Pass some more OS error codes up through Result_t.
Diffstat (limited to 'src/KM_util.cpp')
| -rwxr-xr-x | src/KM_util.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/KM_util.cpp b/src/KM_util.cpp index ec20374..198ba37 100755 --- a/src/KM_util.cpp +++ b/src/KM_util.cpp @@ -165,12 +165,20 @@ Kumu::Result_t::Result_t(int v, const std::string& s, const std::string& l) : va } +Kumu::Result_t::Result_t(const Result_t& other, int o) +{ + *this = other; + os_error = o; +} + + Kumu::Result_t::Result_t(const Result_t& rhs) { value = rhs.value; symbol = rhs.symbol; label = rhs.label; message = rhs.message; + os_error = rhs.os_error; } Kumu::Result_t::~Result_t() {} @@ -183,6 +191,7 @@ Kumu::Result_t::operator=(const Result_t& rhs) symbol = rhs.symbol; label = rhs.label; message = rhs.message; + os_error = rhs.os_error; return *this; } |
