]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Reanud's patch for modern Cpp11 compilers applied
authorsbh <sergey.belash@opencascade.com>
Fri, 16 Jan 2015 07:02:11 +0000 (10:02 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 16 Jan 2015 07:02:11 +0000 (10:02 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp
src/SketchPlugin/SketchPlugin_Circle.cpp
src/SketchPlugin/SketchPlugin_Feature.h
src/SketchPlugin/SketchPlugin_Line.cpp
src/SketchPlugin/SketchPlugin_Point.cpp

index 3acdb0e3196ccb9818cf2974a3bb803d75dde1ee..deb2b2faeb4df9d9c5a40f08aa6fd5039b362e9d 100644 (file)
@@ -188,7 +188,7 @@ double SketchPlugin_Arc::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& t
 }
 
 bool SketchPlugin_Arc::isFixed() {
-  return data()->selection(EXTERNAL_ID())->context();
+  return data()->selection(EXTERNAL_ID())->context().get();
 }
 
 bool SketchPlugin_Arc::isFeatureValid()
index 5fde3dfbe18e4b4cde24868d3243e14786e7a934..e880df9afc2f7e47e06ddb185ae6ea4ce449c4ca 100644 (file)
@@ -99,7 +99,7 @@ double SketchPlugin_Circle::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>
 }
 
 bool SketchPlugin_Circle::isFixed() {
-  return data()->selection(EXTERNAL_ID())->context();
+  return data()->selection(EXTERNAL_ID())->context().get();
 }
 
 void SketchPlugin_Circle::attributeChanged(const std::string& theID) {
index ca61e4b97b789bd8bc13bca99e758d574ed0a45c..b862bb0045c6d4d9f34f351cb2aa696d26509289 100644 (file)
@@ -59,7 +59,7 @@ class SketchPlugin_Feature : public ModelAPI_Feature, public GeomAPI_ICustomPrs
   {
     AttributeSelectionPtr aAttr = data()->selection(EXTERNAL_ID());
     if (aAttr)
-      return aAttr->context();
+      return aAttr->context().get();
     return false;
   }
 
index 50d8f438f5072358de6535d2d05472f8f110e230..429f7e132cf55ae41fcd7a55d8ba8f85af136eb4 100644 (file)
@@ -98,7 +98,7 @@ double SketchPlugin_Line::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>&
 }
 
 bool SketchPlugin_Line::isFixed() {
-  return data()->selection(EXTERNAL_ID())->context();
+  return data()->selection(EXTERNAL_ID())->context().get();
 }
 
 void SketchPlugin_Line::attributeChanged(const std::string& theID) {
index 97c74f4760dbfc4f52e4e3bab14563effcd24c5f..3fd71b5609e3429a5102ac7b9e314d69982802d2 100644 (file)
@@ -70,7 +70,7 @@ double SketchPlugin_Point::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>&
 }
 
 bool SketchPlugin_Point::isFixed() {
-  return data()->selection(EXTERNAL_ID())->context();
+  return data()->selection(EXTERNAL_ID())->context().get();
 }
 
 void SketchPlugin_Point::attributeChanged(const std::string& theID) {