Use `underlying_type` member directly
commit7c23d800e60fcd87e4748f80a02b02b244144fc1
authorChocobo1 <Chocobo1@users.noreply.github.com>
Mon, 5 Jul 2021 07:19:17 +0000 (5 15:19 +0800)
committerChocobo1 <Chocobo1@users.noreply.github.com>
Wed, 7 Jul 2021 06:19:17 +0000 (7 14:19 +0800)
tree9d0a8f77e8c8b489f632a207805b89fcf9155fb7
parent9bfc74a1bcf1420ea0393ffbafe5057cae4f37e4
Use `underlying_type` member directly

`LTUnderlyingType` served as a intermediate type for libtorrent 1.1 and
1.2 and is obsoleted now.
Also add helper to convert to underlying type.
src/base/bittorrent/ltunderlyingtype.h
src/base/bittorrent/session.cpp
src/base/bittorrent/torrentcreatorthread.cpp
src/base/bittorrent/torrentimpl.cpp