* ./hurricane/src/hurricane:
- Bug: In Mask, the "!=" operator was erroneously implemented like the "==" operator. Making "!=" behave like "==", what a mess. - Bug: In BasicLayer, in constructor the _blockageLayer and _connectorLayer where *not* initialised, leading to erratic behavior when checked against NULL.
This commit is contained in:
parent
4426fc4f0c
commit
81cd63baf0
|
@ -182,9 +182,11 @@ namespace Hurricane {
|
|||
,name
|
||||
,minimalSize
|
||||
,minimalSpacing)
|
||||
,_material(material)
|
||||
,_extractNumber(extractNumber)
|
||||
,_realName("<not associated>")
|
||||
,_material (material)
|
||||
,_extractNumber (extractNumber)
|
||||
,_connectorLayer(NULL)
|
||||
,_blockageLayer (NULL)
|
||||
,_realName ("<not associated>")
|
||||
{ }
|
||||
|
||||
|
||||
|
|
|
@ -38,13 +38,12 @@
|
|||
// x-----------------------------------------------------------------x
|
||||
|
||||
|
||||
# ifndef __HURRICANE_DBU__
|
||||
# define __HURRICANE_DBU__
|
||||
#ifndef __HURRICANE_DBU__
|
||||
#define __HURRICANE_DBU__
|
||||
|
||||
|
||||
# include <cmath>
|
||||
|
||||
# include "hurricane/Commons.h"
|
||||
#include <cmath>
|
||||
#include "hurricane/Commons.h"
|
||||
|
||||
|
||||
namespace Hurricane {
|
||||
|
@ -151,4 +150,4 @@ namespace Hurricane {
|
|||
} // End of Hurricane namespace.
|
||||
|
||||
|
||||
# endif // __HURRICANE_DBU__
|
||||
#endif // __HURRICANE_DBU__
|
||||
|
|
|
@ -162,7 +162,7 @@ namespace Hurricane {
|
|||
|
||||
template<typename IntType>
|
||||
inline bool Mask<IntType>::operator != ( const Mask<IntType> mask ) const
|
||||
{ return _mask == mask._mask; }
|
||||
{ return _mask != mask._mask; }
|
||||
|
||||
template<typename IntType>
|
||||
inline bool Mask<IntType>::operator < ( const Mask<IntType> mask ) const
|
||||
|
|
Loading…
Reference in New Issue