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

@ -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