Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 15, 2012, 3:12:13 PM (12 years ago)
Author:
davidsa
Message:

FIX: dynamic_cast from const to non-const is prohibited in newer versions of gcc, modified dynamic_cast so it will convert into a const, doesn't really change the program flow since we only use it to check against NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders/src/libraries/core/Resource.cc

    r8351 r9395  
    101101                ptr->group = group;
    102102                ptr->size = it->uncompressedSize;
    103                 if (dynamic_cast<Ogre::FileSystemArchive*>(it->archive) != NULL)
     103                if (dynamic_cast<const Ogre::FileSystemArchive*>(it->archive) != NULL)
    104104                {
    105105                    boost::filesystem::path base(it->archive->getName());
Note: See TracChangeset for help on using the changeset viewer.