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

@@ -283,7 +283,7 @@ void Cell::setContent(const char * value)
if (owner->sheet()->isRestoring()) {
if (value[0] == '\0' || (value[0] == '\'' && value[1] == '\0'))
return;
expression.reset(new App::StringExpression(owner->sheet(), value));
expression = std::make_unique<App::StringExpression>(owner->sheet(), value);
setUsed(EXPRESSION_SET, true);
return;
}