diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-07-27 13:12:26 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-08-08 11:39:37 +0300 |
commit | 3ee8d0d2f8913bfcfe5e0d1f38664486a168a0fd (patch) | |
tree | e891bba331d049af763a8adb72cbf14600dec12c /coding | |
parent | bc5a666c97ee869411ac6b54f36f0ac04ee9d477 (diff) |
Review fixes.
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(); |