Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5885 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Dec 3, 2005, 1:29:42 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: classList: returns const lists

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture_sequence.cc

    r5865 r5885  
    155155
    156156/**
    157  * moves to the n'th texture which can then be retrieved via the Texture function: this->getTexture()
     157 * @brief moves to the n'th texture which can then be retrieved via the Texture function: this->getTexture()
    158158 * @param frameNumber the n-th frame
    159159 */
  • trunk/src/lib/graphics/text_engine/text_engine.cc

    r5780 r5885  
    6464{
    6565  // first remove all the remaining Texts (if any).
    66   std::list<BaseObject*>* textList = ClassList::getList(CL_TEXT);
     66  const std::list<BaseObject*>* textList = ClassList::getList(CL_TEXT);
    6767  if (textList != NULL)
    6868  {
     
    7171  }
    7272  // delete all remaining fonts (There should not be Anything to do here)
    73   std::list<BaseObject*>* fontList = ClassList::getList(CL_FONT);
     73  const std::list<BaseObject*>* fontList = ClassList::getList(CL_FONT);
    7474  if (fontList != NULL)
    7575  {
     
    124124void TextEngine::debug() const
    125125{
    126   list<BaseObject*>* textList = ClassList::getList(CL_TEXT);
     126  const list<BaseObject*>* textList = ClassList::getList(CL_TEXT);
    127127  if (textList != NULL)
    128128  {
     
    132132    PRINT(0)("Reference: %p; Text Counts: %d\n", this, textList->size());
    133133
    134     list<BaseObject*>::iterator text;
     134    list<BaseObject*>::const_iterator text;
    135135    for ( text = textList->begin(); text != textList->end(); text++)
    136136      dynamic_cast<Text*>(*text)->debug();
Note: See TracChangeset for help on using the changeset viewer.