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

@ -65,7 +65,7 @@ public:
*/
bool Terminating() const { return terminating; }
typedef std::list<std::pair<std::string, MsgThread::Stats>> msg_stats_list;
using msg_stats_list = std::list<std::pair<std::string, MsgThread::Stats>>;
/**
* Returns statistics from all current MsgThread instances.
@ -143,10 +143,10 @@ protected:
void StartHeartbeatTimer();
private:
typedef std::list<BasicThread*> all_thread_list;
using all_thread_list = std::list<BasicThread*>;
all_thread_list all_threads;
typedef std::list<MsgThread*> msg_thread_list;
using msg_thread_list = std::list<MsgThread*>;
msg_thread_list msg_threads;
bool did_process; // True if the last Process() found some work to do.

View file

@ -120,7 +120,7 @@ struct Value
bro_int_t size;
Value** vals;
};
typedef set_t vec_t;
using vec_t = set_t;
struct port_t
{
bro_uint_t port;