Replace typedefs in C++ with using declarations (#1339)

These are more readable than typedefs. C headers were left alone.
This commit is contained in:
Tyler Veness
2018-09-26 00:09:25 -07:00
committed by Peter Johnson
parent 26c33a9a56
commit 8b1274d744
15 changed files with 31 additions and 33 deletions

View File

@@ -371,9 +371,8 @@ double GetTelemetryAverageValue(CS_Handle handle, CS_TelemetryKind kind,
* @defgroup cscore_logging_func Logging Functions
* @{
*/
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)>;
void SetLogger(LogFunc func, unsigned int min_level);
void SetDefaultLogger(unsigned int min_level);
/** @} */