mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Replace most uses of typedef with using for type aliasing
This commit is contained in:
parent
7101f30646
commit
64748edab1
44 changed files with 100 additions and 101 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue