Fix build for Xcode / GCC.

This commit is contained in:
John Preston 2018-01-25 17:19:14 +03:00
parent 6bb39451ea
commit 2aa477176c
8 changed files with 9 additions and 6 deletions

View File

@ -70,7 +70,6 @@ private:
rpl::variable<MessagePosition> _unreadPosition; rpl::variable<MessagePosition> _unreadPosition;
int _unreadCount = 0; int _unreadCount = 0;
int _unreadMutedCount = 0; int _unreadMutedCount = 0;
bool _complete = false;
}; };

View File

@ -1166,8 +1166,8 @@ void HistoryInner::itemRemoved(not_null<const HistoryItem*> item) {
_dragStateItem = nullptr; _dragStateItem = nullptr;
} }
if (_dragSelFrom && _dragSelFrom->data() == item if ((_dragSelFrom && _dragSelFrom->data() == item)
|| _dragSelTo && _dragSelTo->data() == item) { || (_dragSelTo && _dragSelTo->data() == item)) {
_dragSelFrom = nullptr; _dragSelFrom = nullptr;
_dragSelTo = nullptr; _dragSelTo = nullptr;
update(); update();

View File

@ -10,7 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_item.h" #include "history/history_item.h"
class HistoryDocument; class HistoryDocument;
class WebPageData; struct WebPageData;
namespace HistoryView { namespace HistoryView {
class Element; class Element;

View File

@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/linux/linux_libs.h" #include "platform/linux/linux_libs.h"
#include "platform/linux/linux_desktop_environment.h" #include "platform/linux/linux_desktop_environment.h"
#include "platform/platform_notifications_manager.h" #include "platform/platform_notifications_manager.h"
#include "history/history.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "messenger.h" #include "messenger.h"
#include "application.h" #include "application.h"

View File

@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/notifications_utilities.h" #include "window/notifications_utilities.h"
#include "platform/linux/linux_libnotify.h" #include "platform/linux/linux_libnotify.h"
#include "platform/linux/linux_libs.h" #include "platform/linux/linux_libs.h"
#include "history/history.h"
#include "lang/lang_keys.h" #include "lang/lang_keys.h"
namespace Platform { namespace Platform {

View File

@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwindow.h" #include "mainwindow.h"
#include "mainwidget.h" #include "mainwidget.h"
#include "application.h" #include "application.h"
#include "history/history.h"
#include "history/history_widget.h" #include "history/history_widget.h"
#include "history/history_inner_widget.h" #include "history/history_inner_widget.h"
#include "storage/localstorage.h" #include "storage/localstorage.h"

View File

@ -9,9 +9,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/platform_specific.h" #include "platform/platform_specific.h"
#include "platform/mac/mac_utilities.h" #include "platform/mac/mac_utilities.h"
#include "styles/style_window.h" #include "history/history.h"
#include "mainwindow.h" #include "mainwindow.h"
#include "base/variant.h" #include "styles/style_window.h"
#include <thread> #include <thread>
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>

View File

@ -48,6 +48,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <vector> #include <vector>
#include <set> #include <set>
#include <map> #include <map>
#include <unordered_map>
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>