mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Allocate CFileLogger on the heap instead of a local variable
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e644e2a572
commit
3e8b9dc0c9
@@ -84,8 +84,8 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
|
|
||||||
// File logger
|
// File logger
|
||||||
CFileLogger fileLogger(applicationName, QString(), &a);
|
CFileLogger *fileLogger = new CFileLogger(applicationName, QString(), &a);
|
||||||
fileLogger.changeLogPattern(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityDebug));
|
fileLogger->changeLogPattern(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));
|
||||||
|
|
||||||
// GUI icon
|
// GUI icon
|
||||||
a.installTranslator(&translator);
|
a.installTranslator(&translator);
|
||||||
|
|||||||
Reference in New Issue
Block a user