From 954d5f5679d8fb450a741bf99912df26347e466d Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 24 Nov 2017 00:33:07 +0200 Subject: [PATCH] Implement missing handlers for disabled breakpad --- Telegram/SourceFiles/logs.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/logs.cpp b/Telegram/SourceFiles/logs.cpp index 50861ece2..f03e56b99 100644 --- a/Telegram/SourceFiles/logs.cpp +++ b/Telegram/SourceFiles/logs.cpp @@ -1139,5 +1139,19 @@ namespace internal { internal::ProcessAnnotationRefs.erase(key); } } - } + +#ifdef TDESKTOP_DISABLE_CRASH_REPORTS + +namespace SignalHandlers { + dump::~dump() { + } + const dump &operator<<(const dump &stream, const char *str) { + return stream; + } + const dump &operator<<(const dump &stream, double num) { + return stream; + } +} + +#endif // TDESKTOP_DISABLE_CRASH_REPORTS