mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #624, #492 Refactor parts of CLogMessage into base class and use inheriting constructors to unify the construction idiom of CLogMessage and CStatusMessage.
This commit is contained in:
@@ -51,7 +51,7 @@ namespace BlackCore
|
||||
Q_ASSERT_X(m_fsdTextCodec, "CNetworkVatlib", "Missing default wire text encoding");
|
||||
Q_ASSERT_X(Vat_GetVersion() == VAT_LIBVATLIB_VERSION, "swift.network", "Wrong vatlib shared library installed");
|
||||
|
||||
Vat_SetNetworkLogHandler(SeverityError, CNetworkVatlib::networkLogHandler);
|
||||
Vat_SetNetworkLogHandler(SeverityLevel::SeverityError, CNetworkVatlib::networkLogHandler);
|
||||
|
||||
connect(&m_processingTimer, SIGNAL(timeout()), this, SLOT(process()));
|
||||
connect(&m_positionUpdateTimer, &QTimer::timeout, this, &CNetworkVatlib::sendPositionUpdate);
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace BlackCore
|
||||
m_audioService(Vat_CreateAudioService()),
|
||||
m_udpPort(Vat_CreateUDPAudioPort(m_audioService.data(), 0))
|
||||
{
|
||||
Vat_SetVoiceLogHandler(SeverityError, CVoiceVatlib::voiceLogHandler);
|
||||
Vat_SetVoiceLogHandler(SeverityLevel::SeverityError, CVoiceVatlib::voiceLogHandler);
|
||||
|
||||
// do processing
|
||||
this->startTimer(10);
|
||||
|
||||
Reference in New Issue
Block a user