Replace most uses of typedef with using for type aliasing

This commit is contained in:
Tim Wojtulewicz 2021-10-11 14:51:10 -07:00
parent 7101f30646
commit 64748edab1
44 changed files with 100 additions and 101 deletions

View file

@ -18,7 +18,7 @@ class WriterBackend;
class Component : public plugin::Component, public plugin::TaggedComponent<logging::Tag>
{
public:
typedef WriterBackend* (*factory_callback)(WriterFrontend* frontend);
using factory_callback = WriterBackend* (*)(WriterFrontend* frontend);
/**
* Constructor.

View file

@ -85,9 +85,8 @@ struct Manager::Stream
Func* policy;
list<Filter*> filters;
typedef pair<int, string> WriterPathPair;
typedef map<WriterPathPair, WriterInfo*> WriterMap;
using WriterPathPair = pair<int, string>;
using WriterMap = map<WriterPathPair, WriterInfo*>;
WriterMap writers; // Writers indexed by id/path pair.

View file

@ -53,7 +53,7 @@ public:
struct WriterInfo
{
// Structure takes ownership of these strings.
typedef std::map<const char*, const char*, util::CompareString> config_map;
using config_map = std::map<const char*, const char*, util::CompareString>;
/**
* A string left to the interpretation of the writer