tdesktop/Telegram/SourceFiles
John Preston b6128b6fe0 Fix undefined behaviour in base::weak_ptr.
Regression was introduced in 1c79f85d00.

Invalid casts lead to crashes in macOS notifications handling.
Casts were T* -> has_weak_ptr* -> void* -> T* which was not working
in case T had has_weak_ptr as not first base class.

Now it uses just T* -> has_weak_ptr* -> T* casts.
2018-10-10 00:19:47 +03:00
..
_other
base
boxes
calls
chat_helpers
codegen
core
data
dialogs
export
history
info
inline_bots
intro
lang
media
mtproto
old_settings
overview
passport
platform
profile
rpl
settings
storage
support
ui
window
apiwrap.cpp
apiwrap.h
app.cpp
app.h
application.cpp
application.h
auth_session.cpp
auth_session.h
config.h
countries.h
facades.cpp
facades.h
layout.cpp
layout.h
logs.cpp
logs.h
main.cpp
mainwidget.cpp
mainwidget.h
mainwindow.cpp
mainwindow.h
mediaview.cpp
mediaview.h
messenger.cpp
messenger.h
observer_peer.cpp
observer_peer.h
qt_static_plugins.cpp
settings.cpp
settings.h
shortcuts.cpp
shortcuts.h
stdafx.cpp
stdafx.h