]> Creatis software - clitk.git/blobdiff - vv/vvReadState.h
Change auto_ptr to shared_ptr with c++11
[clitk.git] / vv / vvReadState.h
index a34c464cfa2bd17a7e0063ba5c54ee7ab50da967..b10a2cbacb31e9212a7d95ea12aaa4e450fd83b9 100644 (file)
@@ -29,8 +29,13 @@ protected:
   std::string ReadVector(int index);
   std::string ReadLink();
 
+#if __cplusplus > 199711L
+  std::shared_ptr<QXmlStreamReader> m_XmlReader;
+  std::shared_ptr<QFile> m_File;
+#else
   std::auto_ptr<QXmlStreamReader> m_XmlReader;
   std::auto_ptr<QFile> m_File;
+#endif
   vvMainWindow* m_Window;
   int m_TreeItemCount;
   int m_NumImages;