Converted the instances of const built in types being returned from methods

and passed as paramters into straight forward non const built in types,
i.e. const bool foogbar(const int) becomes bool foobar(int).
This commit is contained in:
Robert Osfield
2002-09-02 12:31:35 +00:00
parent 52518673d1
commit 12226e4371
123 changed files with 850 additions and 841 deletions

View File

@@ -31,7 +31,7 @@ class SG_EXPORT Geode : public Node
* sphere to force it to recompute on next getBound() and return true for success.
* Otherwise return false.
*/
virtual const bool addDrawable( Drawable *drawable );
virtual bool addDrawable( Drawable *drawable );
/** Remove Drawable from Geode.
* If gset is contained in Geode then remove it from the geoset
@@ -40,7 +40,7 @@ class SG_EXPORT Geode : public Node
* return true for success. If gset is not found then return false
* and do not change the reference count of gset.
*/
virtual const bool removeDrawable( Drawable *drawable );
virtual bool removeDrawable( Drawable *drawable );
/** Replace specified Drawable with another Drawable.
* Decrement the reference count origGSet and increments the
@@ -50,20 +50,20 @@ class SG_EXPORT Geode : public Node
* add newGset. If newGset is NULL then return false and do
* not remove origGset.
*/
virtual const bool replaceDrawable( Drawable *origDraw, Drawable *newDraw );
virtual bool replaceDrawable( Drawable *origDraw, Drawable *newDraw );
/** return the number of geoset's.*/
inline const unsigned int getNumDrawables() const { return _drawables.size(); }
inline unsigned int getNumDrawables() const { return _drawables.size(); }
/** return geoset at position i.*/
inline Drawable* getDrawable( const unsigned int i ) { return _drawables[i].get(); }
inline Drawable* getDrawable( unsigned int i ) { return _drawables[i].get(); }
/** return geoset at position i.*/
inline const Drawable* getDrawable( const unsigned int i ) const { return _drawables[i].get(); }
inline const Drawable* getDrawable( unsigned int i ) const { return _drawables[i].get(); }
/** return true if geoset is contained within Geode.*/
inline const bool containsDrawable(const Drawable* gset) const
inline bool containsDrawable(const Drawable* gset) const
{
for (DrawableList::const_iterator itr=_drawables.begin();
@@ -112,7 +112,7 @@ class SG_EXPORT Geode : public Node
virtual ~Geode();
virtual const bool computeBound() const;
virtual bool computeBound() const;
DrawableList _drawables;