replace deprecated auto_ptr with unique_ptr

This commit is contained in:
wmayer
2016-09-22 13:01:20 +02:00
parent 1ce73dda96
commit f944ab3846
47 changed files with 129 additions and 129 deletions

View File

@@ -1156,13 +1156,13 @@ bool View3DInventorViewer::dumpToFile(SoNode* node, const char* filename, bool b
if (fi.hasExtension("idtf") || fi.hasExtension("svg")) {
int ps=4;
QColor c = Qt::white;
std::auto_ptr<SoVectorizeAction> vo;
std::unique_ptr<SoVectorizeAction> vo;
if (fi.hasExtension("svg")) {
vo = std::auto_ptr<SoVectorizeAction>(new SoFCVectorizeSVGAction());
vo = std::unique_ptr<SoVectorizeAction>(new SoFCVectorizeSVGAction());
}
else if (fi.hasExtension("idtf")) {
vo = std::auto_ptr<SoVectorizeAction>(new SoFCVectorizeU3DAction());
vo = std::unique_ptr<SoVectorizeAction>(new SoFCVectorizeU3DAction());
}
else {
throw Base::Exception("Not supported vector graphic");