Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2016-01-09 11:42:55 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:04:24 +0300
commitbdfb608c8d3cdbc4dd7c9d9b5c2f0ddb6e130573 (patch)
tree256fccfe420107b175e8fc48bc85f179d79741c4 /editor/osm_auth.cpp
parent468eeba08e52f70e9424be3778ff46af3fdf56e2 (diff)
Improved setter to use in one line.
Diffstat (limited to 'editor/osm_auth.cpp')
-rw-r--r--editor/osm_auth.cpp3
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)