papercut: Archive::remove() is const

Minor issues with the Ogre API that can be trivial to fix
Post Reply
uzik
Goblin
Posts: 202
Joined: Sun Feb 25, 2007 1:45 am
Location: USA
x 6
Contact:

papercut: Archive::remove() is const

Post by uzik »

You asked for papercuts. Here's one I found:

In the ogre class "Archive" this member:
virtual void remove(const String& filename) const
Is marked const.

Removing a file from an archive can hardly happen without changing the archive.
You can cast away the const-ness but it's a pain.
---A dream doesn't become reality through magic; it takes sweat, determination and hard work.
Post Reply