aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils/td/utils/ScopeGuard.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdutils/td/utils/ScopeGuard.h')
-rw-r--r--tdutils/td/utils/ScopeGuard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdutils/td/utils/ScopeGuard.h b/tdutils/td/utils/ScopeGuard.h
index e1d2fd6a2..99c7a445b 100644
--- a/tdutils/td/utils/ScopeGuard.h
+++ b/tdutils/td/utils/ScopeGuard.h
@@ -37,7 +37,7 @@ class LambdaGuard final : public Guard {
}
LambdaGuard(const LambdaGuard &) = delete;
LambdaGuard &operator=(const LambdaGuard &) = delete;
- LambdaGuard(LambdaGuard &&other) : func_(std::move(other.func_)), dismissed_(other.dismissed_) {
+ LambdaGuard(LambdaGuard &&other) noexcept : func_(std::move(other.func_)), dismissed_(other.dismissed_) {
other.dismissed_ = true;
}
LambdaGuard &operator=(LambdaGuard &&) = delete;