summaryrefslogtreecommitdiff
path: root/src/utils.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.hh')
-rw-r--r--src/utils.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.hh b/src/utils.hh
index a08e7707..0cbf4c91 100644
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -109,7 +109,7 @@ public:
return *this;
}
- void reset(T* ptr)
+ void reset(T* ptr = nullptr)
{
*this = safe_ptr(ptr);
}