diff --git a/hurricane/src/hurricane/hurricane/Commons.h b/hurricane/src/hurricane/hurricane/Commons.h index 9570b213..419a8a7d 100644 --- a/hurricane/src/hurricane/hurricane/Commons.h +++ b/hurricane/src/hurricane/hurricane/Commons.h @@ -545,7 +545,10 @@ inline Hurricane::Record* getRecord ( const std::multiset* s ) # define GETSTRING_POINTER_SUPPORT(Data) \ template<> inline std::string getString( Data* data ) \ - { if (!data) return "NULL [" #Data "]"; return data->_getString(); } \ + { \ + if (!data) return "NULL [" #Data "]"; \ + return const_cast(data)->_getString(); \ + } \ \ template<> inline std::string getString( const Data* data ) \ { if (!data) return "NULL [const " #Data "]"; return data->_getString(); } @@ -555,7 +558,7 @@ inline Hurricane::Record* getRecord ( const std::multiset* s ) inline std::ostream& operator<< ( std::ostream& o, Data* d ) \ { \ if (!d) return o << "NULL [" #Data "]"; \ - return o << "&" << getString(d); \ + return o << "&" << getString(d); \ } \ inline std::ostream& operator<< ( std::ostream& o, const Data* d ) \ { \ diff --git a/hurricane/src/hurricane/hurricane/RoutingPad.h b/hurricane/src/hurricane/hurricane/RoutingPad.h index d2a2f196..3420cf43 100644 --- a/hurricane/src/hurricane/hurricane/RoutingPad.h +++ b/hurricane/src/hurricane/hurricane/RoutingPad.h @@ -58,7 +58,7 @@ class RoutingPad : public Component { public: virtual Box getBoundingBox() const; public: virtual const Layer* getLayer() const; public: virtual Box getBoundingBox(const BasicLayer* basicLayer) const; - public: virtual Point getCenter() const; + public: virtual Point getCenter() const; public: Occurrence getOccurrence() const { return _occurrence; }; public: Occurrence getPlugOccurrence(); public: Point getSourcePosition() const;