Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 14, 2023
1 parent 9fa5c68 commit 1c588ed
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion TdConfig.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include(CMakeFindDependencyMacro)
#TODO: write all external dependencies
include("${CMAKE_CURRENT_LIST_DIR}/TdTargets.cmake")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
endif()
5 changes: 0 additions & 5 deletions td/mtproto/Handshake.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
#include "td/utils/UInt.h"

namespace td {

namespace mtproto_api {
class Object;
} // namespace mtproto_api

namespace mtproto {

class DhCallback;
Expand Down
1 change: 0 additions & 1 deletion td/telegram/DialogDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "td/db/SqliteConnectionSafe.h"
#include "td/db/SqliteDb.h"
#include "td/db/SqliteKeyValue.h"
#include "td/db/SqliteStatement.h"

#include "td/actor/actor.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/LinkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "td/utils/algorithm.h"
#include "td/utils/base64.h"
#include "td/utils/buffer.h"
#include "td/utils/FlatHashSet.h"
#include "td/utils/HttpUrl.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/MessageOrigin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
#include "td/telegram/Dependencies.h"
#include "td/telegram/Global.h"
#include "td/telegram/MessagesManager.h"
#include "td/telegram/ServerMessageId.h"
#include "td/telegram/Td.h"

#include "td/utils/logging.h"
#include "td/utils/misc.h"

namespace td {

Expand Down
10 changes: 5 additions & 5 deletions td/telegram/MessageOrigin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ void MessageOrigin::store(StorerT &storer) const {

template <class ParserT>
void MessageOrigin::parse(ParserT &parser) {
bool has_sender_user_id = sender_user_id_.is_valid();
bool has_sender_dialog_id = sender_dialog_id_.is_valid();
bool has_message_id = message_id_.is_valid();
bool has_author_signature = !author_signature_.empty();
bool has_sender_name = !sender_name_.empty();
bool has_sender_user_id;
bool has_sender_dialog_id;
bool has_message_id;
bool has_author_signature;
bool has_sender_name;
BEGIN_PARSE_FLAGS();
PARSE_FLAG(has_sender_user_id);
PARSE_FLAG(has_sender_dialog_id);
Expand Down
1 change: 0 additions & 1 deletion td/telegram/MessagesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "td/telegram/MessageThreadInfo.h"
#include "td/telegram/MessageTtl.h"
#include "td/telegram/MessageViewer.h"
#include "td/telegram/net/DcId.h"
#include "td/telegram/net/NetQuery.h"
#include "td/telegram/Notification.h"
#include "td/telegram/NotificationGroupFromDatabase.h"
Expand Down
4 changes: 4 additions & 0 deletions td/telegram/StatisticsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@

#include "td/utils/algorithm.h"
#include "td/utils/buffer.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h"

#include <limits>

namespace td {

static td_api::object_ptr<td_api::dateRange> convert_date_range(
Expand Down

0 comments on commit 1c588ed

Please sign in to comment.