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

@@ -71,7 +71,7 @@ class OSGTEXT_EXPORT Font : public osg::Object
bool open(const char* font);
bool open(const std::string& font);
virtual bool create(osg::State& state,int pointSize, const unsigned int res = 72 );
virtual bool create(osg::State& state,int pointSize, unsigned int res = 72 );
virtual bool create(osg::State& state);
virtual void output(osg::State& state,const char* text);

View File

@@ -26,7 +26,7 @@ class OSGTEXT_EXPORT Paragraph : public osg::Geode
const osgText::Font* getFont() const { return _font.get(); }
void setMaximumNoCharactersPerLine(unsigned int maxCharsPerLine);
const unsigned int getMaximumNoCharactersPerLine() const { return _maxCharsPerLine; }
unsigned int getMaximumNoCharactersPerLine() const { return _maxCharsPerLine; }
void setText(const std::string& text);
std::string& getText() { return _text; }

View File

@@ -123,7 +123,7 @@ class OSGTEXT_EXPORT Text : public osg::Drawable
virtual ~Text();
virtual void setDefaults(void);
virtual const bool computeBound(void) const;
virtual bool computeBound(void) const;
virtual void calcBounds(osg::Vec3* min,osg::Vec3* max) const;
void initAlignment(osg::Vec3* min,osg::Vec3* max);
bool initAlignment(void);