Changed OSystem::instance() to return a reference, not a pointer (it now matches the Singleton interface)
svn-id: r16402
This commit is contained in:
parent
03d4a6fa47
commit
f52be9df68
6 changed files with 25 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue