From e39bfc895de4193d545fb41b4619215681882df9 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 20 Feb 2020 00:26:36 +0000 Subject: Modernize and tidy --- libjsonpp/jsonpp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libjsonpp/jsonpp.h b/libjsonpp/jsonpp.h index ac45acd..8ad953d 100644 --- a/libjsonpp/jsonpp.h +++ b/libjsonpp/jsonpp.h @@ -11,20 +11,20 @@ namespace json { extern const std::string utf8; extern const std::string null; - typedef Glib::ustring String; - typedef double Number; - typedef bool Boolean; + using String = Glib::ustring; + using Number = double; + using Boolean = bool; #pragma GCC visibility push(default) class Null { }; class Object; class Array; - typedef std::variant Value; - typedef std::map> M; + using Value = std::variant; + using M = std::map>; class Object : public M { public: using M::M; }; - typedef std::vector A; + using A = std::vector; class Array : public A { public: using A::A; -- cgit v1.2.3