Archive findFileInfo const

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
Thyrion
Goblin
Posts: 224
Joined: Wed Jul 31, 2013 1:58 pm
Location: germany
x 8

Archive findFileInfo const

Post by Thyrion »

Hi,

are there any plans to change the const functions in archive?
https://bitbucket.org/sinbad/ogre/pull- ... s-non/diff

actually i try to update the physfs archive for 1.9:
http://www.ogre3d.org/forums/viewtopic.php?f=5&t=35254

but i cannot call a non const function in findfileinfo:

Code: Select all

  Ogre::FileInfoListPtr PhysFSArchive::findFileInfo(const Ogre::String& pattern, bool recursive, bool dirs) const
  {
 m_fileList = listFileInfo(recursive, dirs);
whats the nasty const cast hack? or is it intended to hold the filelist in a member variable? or someting else?