mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +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
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue