From fbc46c2bdf5dfd86973c98a3d52cd7503c6eacc6 Mon Sep 17 00:00:00 2001 From: san Date: Fri, 10 Jun 2005 06:53:31 +0000 Subject: [PATCH] Usage to SPlot2d_CurveContainer removed --- src/SPlot2d/SPlot2d_Prs.cxx | 16 ---------------- src/SPlot2d/SPlot2d_Prs.h | 5 +++-- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/SPlot2d/SPlot2d_Prs.cxx b/src/SPlot2d/SPlot2d_Prs.cxx index 7a9805ecd..3f9fdc6b6 100644 --- a/src/SPlot2d/SPlot2d_Prs.cxx +++ b/src/SPlot2d/SPlot2d_Prs.cxx @@ -43,20 +43,4 @@ SPlot2d_Prs::~SPlot2d_Prs() { } -//========================================================== -/*! - * SPlot2d_Prs::GetObjects - * Get curves list - */ -//========================================================== -SPlot2d_CurveContainer SPlot2d_Prs::GetObjects() const -{ - SPlot2d_CurveContainer anObjects; - int aLen = getCurves().count(); - for ( int i = 0; i < aLen; i++ ) { - anObjects.addCurve(getCurves().at( i )); - } - return anObjects; -} - diff --git a/src/SPlot2d/SPlot2d_Prs.h b/src/SPlot2d/SPlot2d_Prs.h index 8417a1db8..c1327f6b3 100644 --- a/src/SPlot2d/SPlot2d_Prs.h +++ b/src/SPlot2d/SPlot2d_Prs.h @@ -7,9 +7,10 @@ #include "SPlot2d.h" #include "SALOME_Prs.h" -#include "SPlot2d_CurveContainer.h" #include "Plot2d_Prs.h" +#include + class Plot2d_Curve; class SPLOT2D_EXPORT SPlot2d_Prs : public SALOME_Prs2d, public Plot2d_Prs @@ -31,7 +32,7 @@ public: // Get curves list // Note: Depricated method, use method getCurves - SPlot2d_CurveContainer GetObjects() const; + curveList GetObjects() const { return getCurves(); } }; -- 2.39.2