From 9c83ae3593d04a9b4793801e69b938be73ff416b Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Tue, 25 Feb 2014 18:11:59 -0500 Subject: [PATCH] [Positioner] using instead of typedef Declare type aliases with "using" instead of "typedef". --- owlps-positioner/measurement.hh | 4 ++-- owlps-positioner/request.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/owlps-positioner/measurement.hh b/owlps-positioner/measurement.hh index 86c7d29..1ddd496 100644 --- a/owlps-positioner/measurement.hh +++ b/owlps-positioner/measurement.hh @@ -21,8 +21,8 @@ #include #include -typedef uint_fast16_t pkt_id_t ; -typedef int_fast16_t ss_t ; +using pkt_id_t = uint_fast16_t ; +using ss_t = int_fast16_t ; /// Represents a list of signal strengths captured by one CapturePoint class Measurement diff --git a/owlps-positioner/request.hh b/owlps-positioner/request.hh index de7b352..a7f633c 100644 --- a/owlps-positioner/request.hh +++ b/owlps-positioner/request.hh @@ -63,7 +63,7 @@ protected: * &_measurements = std::unordered_map()) ; */ - typedef std::unordered_map measurements_list ; + using measurements_list = std::unordered_map ; public: Request(const Mobile *const _mobile = NULL,