Changed OSystem::instance() to return a reference, not a pointer (it now matches the Singleton interface)

svn-id: r16402
This commit is contained in:
Max Horn 2005-01-01 18:53:47 +00:00
parent 03d4a6fa47
commit f52be9df68
6 changed files with 25 additions and 23 deletions

View file

@ -58,10 +58,10 @@ static OSystem *createSystem() {
#endif
}
OSystem *OSystem::instance() {
OSystem &OSystem::instance() {
if (!s_system)
s_system = createSystem();
return s_system;
return *s_system;
}