Workaround clang 3.4 warning.

This commit is contained in:
levlam 2021-12-28 01:47:34 +03:00
parent da4ff40f76
commit ac8ccaf970
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ class LinkManager::InternalLinkProxy final : public InternalLink {
td_api::object_ptr<td_api::InternalLinkType> get_internal_link_type_object() const final {
CHECK(type_ != nullptr);
auto proxy_type = [type = type_.get()]() -> td_api::object_ptr<td_api::ProxyType> {
auto type = type_.get();
auto proxy_type = [type]() -> td_api::object_ptr<td_api::ProxyType> {
switch (type->get_id()) {
case td_api::proxyTypeSocks5::ID: {
auto type_socks = static_cast<const td_api::proxyTypeSocks5 *>(type);