Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of compilation warnings. Part II. MSVC warnings.
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_AISObject.cpp
diff --git
a/src/GeomAPI/GeomAPI_AISObject.cpp
b/src/GeomAPI/GeomAPI_AISObject.cpp
index 330ee20cb479b7bd140bc959827ad91bdf2e019b..0cf6c079fc5c54e69d6d380a5c34635619fac06e 100644
(file)
--- a/
src/GeomAPI/GeomAPI_AISObject.cpp
+++ b/
src/GeomAPI/GeomAPI_AISObject.cpp
@@
-105,12
+105,11
@@
std::shared_ptr<GeomAPI_Shape> GeomAPI_AISObject::getShape() const
if (!anAIS.IsNull()) {
Handle(AIS_Shape) aShapeAIS = Handle(AIS_Shape)::DownCast(anAIS);
if (aShapeAIS) {
if (!anAIS.IsNull()) {
Handle(AIS_Shape) aShapeAIS = Handle(AIS_Shape)::DownCast(anAIS);
if (aShapeAIS) {
-
std::shared_ptr<GeomAPI_Shape> aResul
t(new GeomAPI_Shape);
+
aResult.rese
t(new GeomAPI_Shape);
aResult->setImpl(new TopoDS_Shape(aShapeAIS->Shape()));
aResult->setImpl(new TopoDS_Shape(aShapeAIS->Shape()));
- return aResult;
}
}
}
}
- return
std::shared_ptr<GeomAPI_Shape>()
;
+ return
aResult
;
}
void GeomAPI_AISObject::createDistance(std::shared_ptr<GeomAPI_Pnt> theStartPoint,
}
void GeomAPI_AISObject::createDistance(std::shared_ptr<GeomAPI_Pnt> theStartPoint,