[clang-tidy] replace typedef with using
Found with modernize-use-using Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
2a1f850753
commit
b4aa8554ad
@ -1283,8 +1283,7 @@ namespace cxxopts
|
|||||||
|
|
||||||
class Options
|
class Options
|
||||||
{
|
{
|
||||||
typedef std::unordered_map<std::string, std::shared_ptr<OptionDetails>>
|
using OptionMap = std::unordered_map<std::string, std::shared_ptr<OptionDetails>>;
|
||||||
OptionMap;
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Options(std::string program, std::string help_string = "")
|
Options(std::string program, std::string help_string = "")
|
||||||
@ -2031,7 +2030,7 @@ inline
|
|||||||
String
|
String
|
||||||
Options::help_one_group(const std::string& g) const
|
Options::help_one_group(const std::string& g) const
|
||||||
{
|
{
|
||||||
typedef std::vector<std::pair<String, String>> OptionHelp;
|
using OptionHelp = std::vector<std::pair<String, String>>;
|
||||||
|
|
||||||
auto group = m_help.find(g);
|
auto group = m_help.find(g);
|
||||||
if (group == m_help.end())
|
if (group == m_help.end())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user