getSingleton()

What it says on the tin: a place to discuss proposed new features.
NZ_
Gnoblar
Posts: 13
Joined: Wed Jun 18, 2014 2:45 am
x 1

getSingleton()

Post by NZ_ »

Hi

A thought.
Line
ResourceGroupManager::getSingleton().resourceGroupExists(groupBuffer);
would look like
ResourceGroupManager::resourceGroupExists(groupBuffer);
if there was a static method
bool ResourceGroupManager::resourceGroupExists(String group){
return getSingleton().resourceGroupExists(group);
}

It is not a big deal, but there are many getSingleton() in the code. Without it the code would look little nicer.

Regards