diff options
author | Alex Zolotarev <alex@maps.me> | 2016-01-09 11:42:55 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:04:24 +0300 |
commit | bdfb608c8d3cdbc4dd7c9d9b5c2f0ddb6e130573 (patch) | |
tree | 256fccfe420107b175e8fc48bc85f179d79741c4 /editor/osm_auth.cpp | |
parent | 468eeba08e52f70e9424be3778ff46af3fdf56e2 (diff) |
Improved setter to use in one line.
Diffstat (limited to 'editor/osm_auth.cpp')
-rw-r--r-- | editor/osm_auth.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/osm_auth.cpp b/editor/osm_auth.cpp index 8dbb25b440..15bf078854 100644 --- a/editor/osm_auth.cpp +++ b/editor/osm_auth.cpp @@ -257,10 +257,11 @@ OsmOAuth::Response OsmOAuth::DirectRequest(string const & method, bool api) cons return Response(static_cast<ResponseCode>(request.error_code()), request.server_response()); } -void OsmOAuth::SetToken(ClientToken const & token) +OsmOAuth & OsmOAuth::SetToken(ClientToken const & token) { m_token.m_key = token.m_key; m_token.m_secret = token.m_secret; + return *this; } OsmOAuth::AuthResult OsmOAuth::FetchAccessToken(SessionID const & sid) |