Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-02-25 16:42:23 +0300
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>2021-08-23 10:44:33 +0300
commit5b457a1663cfd6df63e6762ddc9a7d1a29200455 (patch)
tree24a563535abb444b31ab2444e6ee6ebf7975bdc7 /src/common
parent5a7fd3f316d0ccd974a6e5d07ff3f47e896c5277 (diff)
Use byte array for etag
Diffstat (limited to 'src/common')
-rw-r--r--src/common/result.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/result.h b/src/common/result.h
index 25129e875..77a9d121c 100644
--- a/src/common/result.h
+++ b/src/common/result.h
@@ -104,6 +104,7 @@ public:
ASSERT(!_isError);
return _result;
}
+
T operator*() &&
{
ASSERT(!_isError);
@@ -116,6 +117,12 @@ public:
return &_result;
}
+ const T &get() const
+ {
+ ASSERT(!_isError)
+ return _result;
+ }
+
const Error &error() const &
{
ASSERT(_isError);