summaryrefslogtreecommitdiff
path: root/platform/default/local_file_source.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-01-26 18:52:44 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-01-27 11:44:16 +0100
commit62ea1f21858c69f6921c775ba7a3de201f0514d8 (patch)
tree7a4da88706e8a5513e1e13e993b2acc212cae3b1 /platform/default/local_file_source.cpp
parenta662508ddde4043ece36d8ea9b424368891d892c (diff)
downloadqtlocation-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.cpp6
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;
}