mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
#31 CApplicationContext: fixed setDebug and getDebug (thanks Roland)
This commit is contained in:
@@ -61,12 +61,12 @@ namespace BlackMisc
|
||||
|
||||
CDebug *CApplicationContext::getDebug()
|
||||
{
|
||||
return qobject_cast<CDebug *>(singleton("CDebug"));
|
||||
return IContext::singleton<CDebug>();
|
||||
}
|
||||
|
||||
void CApplicationContext::setDebug(CDebug *debug)
|
||||
{
|
||||
setSingleton("CDebug", debug);
|
||||
IContext::setSingleton(debug);
|
||||
}
|
||||
|
||||
void CApplicationContext::setDefaultApplicationName()
|
||||
|
||||
Reference in New Issue
Block a user