diff options
Diffstat (limited to 'coding')
-rw-r--r-- | coding/uri.cpp | 2 | ||||
-rw-r--r-- | coding/uri.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/coding/uri.cpp b/coding/uri.cpp index f3b9d9f577..4b98a96839 100644 --- a/coding/uri.cpp +++ b/coding/uri.cpp @@ -47,7 +47,7 @@ bool Uri::Parse() return true; } -bool Uri::ForEachKeyValue(CallbackT const & callback) const +bool Uri::ForEachKeyValue(TCallback const & callback) const { // parse query for keys and values size_t const count = m_url.size(); diff --git a/coding/uri.hpp b/coding/uri.hpp index f0ea0a7824..8d2bae7d20 100644 --- a/coding/uri.hpp +++ b/coding/uri.hpp @@ -13,7 +13,7 @@ namespace url_scheme class Uri { public: - typedef function<bool(string const &, string const &)> CallbackT; + using TCallback = function<bool(string const &, string const &)>; explicit Uri(string const & uri) : m_url(uri) { Init(); } Uri(char const * uri, size_t size) : m_url(uri, uri + size) { Init(); } @@ -21,7 +21,7 @@ public: string const & GetScheme() const { return m_scheme; } string const & GetPath() const { return m_path; } bool IsValid() const { return !m_scheme.empty(); } - bool ForEachKeyValue(CallbackT const & callback) const; + bool ForEachKeyValue(TCallback const & callback) const; private: void Init(); |