diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-01-26 18:52:44 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-01-27 11:44:16 +0100 |
commit | 62ea1f21858c69f6921c775ba7a3de201f0514d8 (patch) | |
tree | 7a4da88706e8a5513e1e13e993b2acc212cae3b1 /platform/default/local_file_source.cpp | |
parent | a662508ddde4043ece36d8ea9b424368891d892c (diff) | |
download | qtlocation-mapboxgl-62ea1f21858c69f6921c775ba7a3de201f0514d8.tar.gz |
[core] remove trailing whitespace, add trailing newlines, add space after //
Diffstat (limited to 'platform/default/local_file_source.cpp')
-rw-r--r-- | platform/default/local_file_source.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/default/local_file_source.cpp b/platform/default/local_file_source.cpp index 5686b453dc..93b42f5fa0 100644 --- a/platform/default/local_file_source.cpp +++ b/platform/default/local_file_source.cpp @@ -14,7 +14,7 @@ namespace { const char* protocol = "file://"; const std::size_t protocolLength = 7; - + } // namespace namespace mbgl { @@ -22,7 +22,7 @@ namespace mbgl { class LocalFileSource::Impl { public: void request(const std::string& url, FileSource::Callback callback) { - //Cut off the protocol + // Cut off the protocol std::string path = mbgl::util::percentDecode(url.substr(protocolLength)); Response response; @@ -58,7 +58,7 @@ LocalFileSource::~LocalFileSource() = default; std::unique_ptr<AsyncRequest> LocalFileSource::request(const Resource& resource, Callback callback) { return thread->invokeWithCallback(&Impl::request, resource.url, callback); } - + bool LocalFileSource::acceptsURL(const std::string& url) { return url.compare(0, protocolLength, protocol) == 0; } |