biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enable more clang-tidy checks for new code
[alexxy/gromacs.git]
/
src
/
gromacs
/
options
/
optionstoragetemplate.h
diff --git
a/src/gromacs/options/optionstoragetemplate.h
b/src/gromacs/options/optionstoragetemplate.h
index ed10c95e26c19eb059091fbeca8cf2a24da8eb2a..43a745f1c43098ff05763cafbed79cf2da7b26c6 100644
(file)
--- a/
src/gromacs/options/optionstoragetemplate.h
+++ b/
src/gromacs/options/optionstoragetemplate.h
@@
-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