From d25bea005d268f1a64c082910a90e66259f7300b Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 17 May 2010 14:40:32 +0000 Subject: [PATCH] * All tools: - Change: Correction to suppress all g++ warnings. Except thoses comming from bad Python system includes... --- vlsisapd/agds/GdsElement.h | 3 ++- vlsisapd/agds/GdsRectangle.cpp | 4 ++++ vlsisapd/agds/GdsRectangle.h | 7 +++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/vlsisapd/agds/GdsElement.h b/vlsisapd/agds/GdsElement.h index fb355ef8..38253bd8 100644 --- a/vlsisapd/agds/GdsElement.h +++ b/vlsisapd/agds/GdsElement.h @@ -4,7 +4,8 @@ namespace IO { class GdsElement { protected: - inline GdsElement(int layer); + inline GdsElement (int layer); + virtual ~GdsElement (); public: virtual bool write ( ofstream &file ) = 0; diff --git a/vlsisapd/agds/GdsRectangle.cpp b/vlsisapd/agds/GdsRectangle.cpp index 4b82a3ee..49478889 100644 --- a/vlsisapd/agds/GdsRectangle.cpp +++ b/vlsisapd/agds/GdsRectangle.cpp @@ -5,6 +5,8 @@ using namespace std; #include "GdsRectangle.h" namespace IO { +GdsElement::~GdsElement () { } + GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax) : GdsElement(layer) , _xmin(xmin) @@ -12,6 +14,8 @@ GdsRectangle::GdsRectangle(int layer, double xmin, double ymin, double xmax, dou , _xmax(xmax) , _ymax(ymax) {} +GdsRectangle::~GdsRectangle () { } + bool GdsRectangle::write(ofstream &file) { file << "BOUNDARY;" << endl << "LAYER " << _layer << ";" << endl diff --git a/vlsisapd/agds/GdsRectangle.h b/vlsisapd/agds/GdsRectangle.h index 2c9a190e..f2563128 100644 --- a/vlsisapd/agds/GdsRectangle.h +++ b/vlsisapd/agds/GdsRectangle.h @@ -8,10 +8,9 @@ namespace IO { class GdsRectangle : public GdsElement { public: - GdsRectangle(int layer, double xmin, double ymin, double xmax, double ymax); - - virtual bool write ( ofstream &file ); - + GdsRectangle (int layer, double xmin, double ymin, double xmax, double ymax); + virtual ~GdsRectangle (); + virtual bool write ( ofstream &file ); private: double _xmin; double _ymin;