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;
int _unreadCount = 0;
int _unreadMutedCount = 0;
bool _complete = false;
};

View File

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

View File

@ -10,7 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history_item.h"
class HistoryDocument;
class WebPageData;
struct WebPageData;
namespace HistoryView {
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_desktop_environment.h"
#include "platform/platform_notifications_manager.h"
#include "history/history.h"
#include "mainwindow.h"
#include "messenger.h"
#include "application.h"

View File

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

View File

@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwindow.h"
#include "mainwidget.h"
#include "application.h"
#include "history/history.h"
#include "history/history_widget.h"
#include "history/history_inner_widget.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/mac/mac_utilities.h"
#include "styles/style_window.h"
#include "history/history.h"
#include "mainwindow.h"
#include "base/variant.h"
#include "styles/style_window.h"
#include <thread>
#include <Cocoa/Cocoa.h>

View File

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