Fix CE and warning.

GitOrigin-RevId: 64989213b16f2450678a49e69f3f77d065cb6369
This commit is contained in:
levlam 2019-11-02 03:39:14 +03:00
parent 809b28aa4a
commit 2f2c09bf58
2 changed files with 2 additions and 2 deletions

View File

@ -1519,7 +1519,7 @@ static Result<vector<MessageEntity>> do_parse_markdown_v2(CSlice text, string &r
// begin of an entity
MessageEntity::Type type;
string argument;
int32 entity_byte_offset = i;
auto entity_byte_offset = i;
switch (c) {
case '_':
if (text[i + 1] == '_') {

View File

@ -2441,7 +2441,7 @@ StickerSetId StickersManager::get_sticker_set(StickerSetId set_id, Promise<Unit>
const StickerSet *sticker_set = get_sticker_set(set_id);
if (sticker_set == nullptr) {
if (set_id.get() == GREAT_MINDS_SET_ID) {
do_reload_sticker_set(set_id, make_tl_object<telegram_api::inputStickerSetID>(GREAT_MINDS_SET_ID, 0),
do_reload_sticker_set(set_id, make_tl_object<telegram_api::inputStickerSetID>(set_id.get(), 0),
std::move(promise));
return StickerSetId();
}