mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Replace typedefs in C++ with using declarations (#1339)
These are more readable than typedefs. C headers were left alone.
This commit is contained in:
committed by
Peter Johnson
parent
26c33a9a56
commit
8b1274d744
@@ -29,9 +29,8 @@ enum LogLevel {
|
||||
|
||||
class Logger {
|
||||
public:
|
||||
typedef std::function<void(unsigned int level, const char* file,
|
||||
unsigned int line, const char* msg)>
|
||||
LogFunc;
|
||||
using LogFunc = std::function<void(unsigned int level, const char* file,
|
||||
unsigned int line, const char* msg)>;
|
||||
|
||||
Logger() = default;
|
||||
explicit Logger(const LogFunc& func) : m_func(func) {}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace wpi {
|
||||
|
||||
class priority_recursive_mutex {
|
||||
public:
|
||||
typedef pthread_mutex_t* native_handle_type;
|
||||
using native_handle_type = pthread_mutex_t*;
|
||||
|
||||
constexpr priority_recursive_mutex() noexcept = default;
|
||||
priority_recursive_mutex(const priority_recursive_mutex&) = delete;
|
||||
@@ -57,7 +57,7 @@ class priority_recursive_mutex {
|
||||
|
||||
class priority_mutex {
|
||||
public:
|
||||
typedef pthread_mutex_t* native_handle_type;
|
||||
using native_handle_type = pthread_mutex_t*;
|
||||
|
||||
constexpr priority_mutex() noexcept = default;
|
||||
priority_mutex(const priority_mutex&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user