diff options
author | hjk <[email protected]> | 2025-04-08 17:17:23 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2025-04-11 09:38:34 +0000 |
commit | 9e9bbf215cb72467ec71be144b24b177e31afe0a (patch) | |
tree | 3a921f3cb8cace118182ff43ae29079b3067ead4 /src/plugins/docker/dockerdevice.h | |
parent | 133cdb8e80894b0438e441a61ada13da5694ceaa (diff) |
Utils: Replace Result class by type alias to std::expected<T, QString>
... to be able to conveniently return also non-void cases without being
exposed to the syntax of expected.
The price for the more general approach is some uglification of the
void case: The previous 'Result' is now equivalent to 'Result<>',
which needs to be spelled out in function signatures, and some
changes to the special cases.
Change-Id: Ic5026e237ef2077a0765cdb8287122cae99d699f
Reviewed-by: Marcus Tillmanns <[email protected]>
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/docker/dockerdevice.h')
-rw-r--r-- | src/plugins/docker/dockerdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/docker/dockerdevice.h b/src/plugins/docker/dockerdevice.h index 3a3cf92115c..ed849483fc8 100644 --- a/src/plugins/docker/dockerdevice.h +++ b/src/plugins/docker/dockerdevice.h @@ -59,7 +59,7 @@ public: Utils::expected_str<Utils::Environment> systemEnvironmentWithError() const override; - Utils::Result updateContainerAccess() const; + Utils::Result<> updateContainerAccess() const; void setMounts(const QStringList &mounts) const; bool prepareForBuild(const ProjectExplorer::Target *target) override; |