papercut: Archive::remove() is const

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

papercut: Archive::remove() is const

Post by uzik » Wed Mar 06, 2013 8:37 pm

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.
0 x
---A dream doesn't become reality through magic; it takes sweat, determination and hard work.

Post Reply