diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-12-14 14:48:20 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-08 22:58:20 +0200 |
commit | f880baaeb73a196dfcc80786b37e0f7fb6730bd1 (patch) | |
tree | e50ad799954e09df64524f89e81ac51d65d29f20 | |
parent | af183f3952d851e66a6f9b9fc7bc256eab6383e5 (diff) | |
download | qtlocation-mapboxgl-f880baaeb73a196dfcc80786b37e0f7fb6730bd1.tar.gz |
[windows][qt] Remove std:: namespace of some functions
Not available on Windows.
-rw-r--r-- | platform/qt/src/sqlite3.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/style/expression/let.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/qt/src/sqlite3.cpp b/platform/qt/src/sqlite3.cpp index 2f3db12f33..80efd6a326 100644 --- a/platform/qt/src/sqlite3.cpp +++ b/platform/qt/src/sqlite3.cpp @@ -354,7 +354,7 @@ template <> mbgl::Timestamp Statement::get(int offset) { QVariant value = impl->query.value(offset); checkQueryError(impl->query); return std::chrono::time_point_cast<std::chrono::seconds>( - std::chrono::system_clock::from_time_t(value.value<std::time_t>())); + std::chrono::system_clock::from_time_t(value.value<::time_t>())); } template <> optional<int64_t> Statement::get(int offset) { @@ -398,7 +398,7 @@ template <> optional<mbgl::Timestamp> Statement::get(int offset) { if (value.isNull()) return {}; return { std::chrono::time_point_cast<mbgl::Seconds>( - std::chrono::system_clock::from_time_t(value.value<std::time_t>())) }; + std::chrono::system_clock::from_time_t(value.value<::time_t>())) }; } void Statement::reset() { diff --git a/src/mbgl/style/expression/let.cpp b/src/mbgl/style/expression/let.cpp index 561e8515d4..5c08248eef 100644 --- a/src/mbgl/style/expression/let.cpp +++ b/src/mbgl/style/expression/let.cpp @@ -38,7 +38,7 @@ ParseResult Let::parse(const Convertible& value, ParsingContext& ctx) { } bool isValidName = std::all_of(name->begin(), name->end(), [](unsigned char c) { - return std::isalnum(c) || c == '_'; + return ::isalnum(c) || c == '_'; }); if (!isValidName) { ctx.error("Variable names must contain only alphanumeric characters or '_'.", 1); |