7 Commits

Author SHA1 Message Date
Nyall Dawson
9cde65457b Ensure correct thread locale QgsNetworkAccessManager is used during
o2 requests

Otherwise the main thread manager is always used, resulting in
lots of warnings and potential crashes
2019-05-12 15:00:25 +10:00
Nyall Dawson
ba8f8e3f07 [o2] A new refresh_token is not a mandatory part of the response
after requesting a refresh

The server will always return a new access_token, but returning
a new refresh_token is optional
2019-05-12 15:00:25 +10:00
Nyall Dawson
87f5c0c0d4 [o2] Avoid a misleading console error output 2018-10-26 07:20:47 +10:00
Alessandro Pasotti
e5ba558617 Fix error return-std-move
std::move should not be used here because
it prevents RVO (copy elision) and it's
considered an anti-pattern.

To fix the original warning the returned
type must match the declared return
type or copy elision will not be possible
(and the warning will be triggered).
2018-10-11 08:33:18 +02:00
Denis Rouzaud
94a7d9db66
fix local variable will be copied despite being returned by name (#8157)
this is an error with clang 7
note: call 'std::move' explicitly to avoid copying
2018-10-10 05:33:54 -08:00
Matthias Kuhn
e306aaaaef
Fix file mode 2018-09-16 14:18:39 +02:00
Alessandro Pasotti
d54f5b2c2c [oauth2] Add o2 library as external 2018-06-25 11:39:52 +02:00