mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Update submodules to the latest spellcheck.
This commit is contained in:
32
Telegram/SourceFiles/core/base_integration.cpp
Normal file
32
Telegram/SourceFiles/core/base_integration.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
This file is part of Telegram Desktop,
|
||||
the official desktop application for the Telegram messaging service.
|
||||
|
||||
For license and copyright information please follow this link:
|
||||
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
*/
|
||||
#include "core/base_integration.h"
|
||||
|
||||
#include "core/sandbox.h"
|
||||
#include "core/crash_reports.h"
|
||||
|
||||
namespace Core {
|
||||
|
||||
BaseIntegration::BaseIntegration(int argc, char *argv[])
|
||||
: Integration(argc, argv) {
|
||||
}
|
||||
|
||||
void BaseIntegration::enterFromEventLoop(FnMut<void()> &&method) {
|
||||
Core::Sandbox::Instance().customEnterFromEventLoop(
|
||||
std::move(method));
|
||||
}
|
||||
|
||||
void BaseIntegration::logAssertionViolation(const QString &info) {
|
||||
#ifdef LOG
|
||||
LOG(("Assertion Failed! ") + info);
|
||||
#endif // LOG
|
||||
|
||||
CrashReports::SetAnnotation("Assertion", info);
|
||||
}
|
||||
|
||||
} // namespace Core
|
Reference in New Issue
Block a user