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:
@@ -86,7 +86,7 @@ namespace osgParticle
|
||||
virtual ~ParticleProcessor() {}
|
||||
ParticleProcessor &operator=(const ParticleProcessor &) { return *this; }
|
||||
|
||||
inline const bool computeBound() const;
|
||||
inline bool computeBound() const;
|
||||
|
||||
virtual void process(double dt) = 0;
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace osgParticle
|
||||
ps_ = ps;
|
||||
}
|
||||
|
||||
inline const bool ParticleProcessor::computeBound() const
|
||||
inline bool ParticleProcessor::computeBound() const
|
||||
{
|
||||
_bsphere.init();
|
||||
_bsphere_computed = true;
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace osgParticle
|
||||
|
||||
ParticleSystem &operator=(const ParticleSystem &) { return *this; }
|
||||
|
||||
inline virtual const bool computeBound() const;
|
||||
inline virtual bool computeBound() const;
|
||||
virtual void drawImmediateMode(osg::State &state);
|
||||
inline void update_bounds(const osg::Vec3 &p, float r);
|
||||
void single_pass_render(osg::State &state, const osg::Matrix &modelview);
|
||||
@@ -282,7 +282,7 @@ namespace osgParticle
|
||||
return last_frame_;
|
||||
}
|
||||
|
||||
inline const bool ParticleSystem::computeBound() const
|
||||
inline bool ParticleSystem::computeBound() const
|
||||
{
|
||||
if (!bounds_computed_) {
|
||||
_bbox = def_bbox_;
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace osgParticle
|
||||
virtual ~ParticleSystemUpdater() {}
|
||||
ParticleSystemUpdater &operator=(const ParticleSystemUpdater &) { return *this; }
|
||||
|
||||
inline virtual const bool computeBound() const;
|
||||
inline virtual bool computeBound() const;
|
||||
|
||||
private:
|
||||
typedef std::vector<osg::ref_ptr<ParticleSystem> > ParticleSystem_Vector;
|
||||
@@ -72,7 +72,7 @@ namespace osgParticle
|
||||
|
||||
// INLINE FUNCTIONS
|
||||
|
||||
inline const bool ParticleSystemUpdater::computeBound() const
|
||||
inline bool ParticleSystemUpdater::computeBound() const
|
||||
{
|
||||
_bsphere.init();
|
||||
_bsphere_computed = true;
|
||||
|
||||
Reference in New Issue
Block a user