mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -20,7 +20,7 @@ class PktDumper;
|
|||
class Component : public plugin::Component
|
||||
{
|
||||
public:
|
||||
typedef IOSource* (*factory_callback)();
|
||||
using factory_callback = IOSource* (*)();
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -63,7 +63,7 @@ public:
|
|||
BOTH ///< Live input as well as offline.
|
||||
};
|
||||
|
||||
typedef PktSrc* (*factory_callback)(const std::string& path, bool is_live);
|
||||
using factory_callback = PktSrc* (*)(const std::string& path, bool is_live);
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -134,7 +134,7 @@ private:
|
|||
class PktDumperComponent : public plugin::Component
|
||||
{
|
||||
public:
|
||||
typedef PktDumper* (*factory_callback)(const std::string& path, bool append);
|
||||
using factory_callback = PktDumper* (*)(const std::string& path, bool append);
|
||||
|
||||
/**
|
||||
* XXX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue