Salome HOME
Porting to 5.1.2
[modules/paravis.git] / src / Plugins / ParaGEOMCorba / vtkParaGEOMCorbaSource.cxx
index 7a442b7aca5161df524f4de5a9b1578f5e07bdf3..5ae91c17cb8caad24f0a124122c0df39db7f5693 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2016  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -35,6 +35,7 @@
 #include "GEOM_Client.hxx"
 #include "OCC2VTK_Tools.h"
 
+#include <algorithm>
 
 //----------------------------------------------
 vtkStandardNewMacro(vtkParaGEOMCorbaSource);
@@ -72,7 +73,7 @@ void vtkParaGEOMCorbaSource::SetIORCorba(char *ior) {
     return;
   int length=strlen(ior);
   IOR.resize(length+1);
-  vtksys_stl::copy(ior,ior+length+1,&IOR[0]);
+  std::copy(ior,ior+length+1,&IOR[0]);
   this->Modified();
 }
 
@@ -114,7 +115,7 @@ int vtkParaGEOMCorbaSource::RequestData(vtkInformation* request, vtkInformationV
        TopoDS_Shape aTopoDSShape = GEOM_Client::get_client().GetShape( geomGen, geomObj );
        
        if ( !aTopoDSShape.IsNull() ) {
-         vtkPolyData *ret=GEOM::GetData(aTopoDSShape, this->Deflection);
+         vtkPolyData *ret=GEOM::GetVTKData(aTopoDSShape, this->Deflection);
          if(!ret) {
            vtkErrorMacro("On geom object CORBA fetching an error occurs !");
            return 0;