forked from qt-creator/qt-creator
Utils: Add some move boilerplate to class Result
Change-Id: Iefa3a8be137955c69d500b138e19249c5186a87a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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); };
|
||||
|
||||
|
Reference in New Issue
Block a user