StringConverter should be a namespace, not a class

Minor issues with the Ogre API that can be trivial to fix
cadabra
Gnoblar
Posts: 22
Joined: Thu Sep 23, 2010 8:32 am
Location: sfbay
x 3

StringConverter should be a namespace, not a class

Post by cadabra »

All its functions are static. There's no reason for it to be a class. If I create an instance of StringConverter, what can I do with it? Nothing. Here's one reason to make it a namespace:

Code: Select all

using namespace Ogre::StringConversions;
...
x = toString(y);