0028550: Foundation Classes - fix empty message passed to thrown exception
[occt.git] / src / GCE2d / GCE2d_MakeSegment.cxx
index 2d4fc0c..3f4832b 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <GCE2d_MakeSegment.ixx>
+
+#include <ElCLib.hxx>
 #include <GCE2d_MakeLine.hxx>
-#include <StdFail_NotDone.hxx>
+#include <GCE2d_MakeSegment.hxx>
 #include <Geom2d_Line.hxx>
-#include <ElCLib.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
+#include <gp_Dir2d.hxx>
+#include <gp_Lin2d.hxx>
+#include <gp_Pnt2d.hxx>
+#include <StdFail_NotDone.hxx>
 
 GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1 ,
                                     const gp_Dir2d& V  ,
@@ -77,17 +82,7 @@ GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Lin2d&     Line  ,
 
 const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Value() const
 { 
-  StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
+  StdFail_NotDone_Raise_if (TheError != gce_Done,
+                            "GCE2d_MakeSegment::Value() - no result");
   return TheSegment;
 }
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Operator() const 
-{
-  return Value();
-}
-
-GCE2d_MakeSegment::operator Handle(Geom2d_TrimmedCurve) () const
-{
-  return Value();
-}
-