Utils: Add some move boilerplate to class Result

Change-Id: Iefa3a8be137955c69d500b138e19249c5186a87a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-10-11 09:23:27 +02:00
parent f993fb76de
commit a0a52941b8

View File

@@ -19,8 +19,13 @@ class QTCREATOR_UTILS_EXPORT Result
public:
Result(bool success, const QString &errorString);
Result(const expected_str<void> &res);
Result(const Result &) = default;
Result(Result &&) = default;
~Result();
Result &operator=(const Result &) = default;
Result &operator=(Result &&) = default;
static const Result Ok;
static Result Error(const QString &errorString) { return Result(errorString); };