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

@@ -84,7 +84,7 @@ void ViewProviderPlacement::attach(App::DocumentObject* pcObject)
{
ViewProviderGeometryObject::attach(pcObject);
if(!Axis) {
Axis.reset(new AxisOrigin);
Axis = std::make_unique<AxisOrigin>();
std::map<std::string,std::string> labels;
labels["O"] = "Origin";
labels["X"] = "X-Axis";