modernize C++: make unique

This commit is contained in:
wmayer
2023-08-07 20:01:45 +02:00
committed by Chris Hennes
parent c2e17824fa
commit ec73caa40e
30 changed files with 134 additions and 124 deletions

View File

@@ -4623,7 +4623,7 @@ void PropertyXLinkContainer::Save (Base::Writer &writer) const {
void PropertyXLinkContainer::Restore(Base::XMLReader &reader) {
reader.readElement("XLinks");
auto count = reader.getAttributeAsUnsigned("count");
_XLinkRestores.reset(new std::vector<RestoreInfo>(count));
_XLinkRestores = std::make_unique<std::vector<RestoreInfo>>(count);
if(reader.hasAttribute("hidden")) {
std::istringstream iss(reader.getAttribute("hidden"));