Enable more clang-tidy checks for new code
[alexxy/gromacs.git] / src / gromacs / options / optionstoragetemplate.h
index ed10c95e26c19eb059091fbeca8cf2a24da8eb2a..43a745f1c43098ff05763cafbed79cf2da7b26c6 100644 (file)
@@ -601,7 +601,7 @@ void OptionStorageTemplate<T>::setDefaultValueIfSet(const T &value)
         GMX_THROW(APIError("defaultValueIfSet() is not supported with allowMultiple()"));
     }
     setFlag(efOption_DefaultValueIfSetExists);
-    defaultValueIfSet_.reset(new T(value));
+    defaultValueIfSet_ = compat::make_unique<T>(value);
 }
 
 } // namespace gmx