summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-05-25 21:14:18 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-05-25 21:35:37 +0200
commite2bcea90fce8a1e05e517c615d21d845e955f53d (patch)
tree208da7ad0db235a13b5ae6d360279a624e46fb95 /include/mbgl/storage
parent6368403f433cfbfed1547d4167a9836fa2942a97 (diff)
downloadqtlocation-mapboxgl-e2bcea90fce8a1e05e517c615d21d845e955f53d.tar.gz
[core] use #pragma once instead of ifdef include guards
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r--include/mbgl/storage/default_file_source.hpp5
-rw-r--r--include/mbgl/storage/file_source.hpp5
-rw-r--r--include/mbgl/storage/network_status.hpp5
-rw-r--r--include/mbgl/storage/online_file_source.hpp5
-rw-r--r--include/mbgl/storage/resource.hpp5
-rw-r--r--include/mbgl/storage/response.hpp5
6 files changed, 6 insertions, 24 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 76d60fce70..e77befda1b 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_DEFAULT_FILE_SOURCE
-#define MBGL_STORAGE_DEFAULT_FILE_SOURCE
+#pragma once
#include <mbgl/storage/file_source.hpp>
#include <mbgl/storage/offline.hpp>
@@ -111,5 +110,3 @@ private:
};
} // namespace mbgl
-
-#endif
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp
index e572776af2..88e0336187 100644
--- a/include/mbgl/storage/file_source.hpp
+++ b/include/mbgl/storage/file_source.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_FILE_SOURCE
-#define MBGL_STORAGE_FILE_SOURCE
+#pragma once
#include <mbgl/storage/response.hpp>
#include <mbgl/storage/resource.hpp>
@@ -27,5 +26,3 @@ public:
};
} // namespace mbgl
-
-#endif
diff --git a/include/mbgl/storage/network_status.hpp b/include/mbgl/storage/network_status.hpp
index d5ea13e07e..d7f502a3b2 100644
--- a/include/mbgl/storage/network_status.hpp
+++ b/include/mbgl/storage/network_status.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_NETWORK_STATUS
-#define MBGL_STORAGE_NETWORK_STATUS
+#pragma once
#include <atomic>
#include <mutex>
@@ -33,5 +32,3 @@ private:
};
} // namespace mbgl
-
-#endif
diff --git a/include/mbgl/storage/online_file_source.hpp b/include/mbgl/storage/online_file_source.hpp
index fd742a54c4..081beeeabc 100644
--- a/include/mbgl/storage/online_file_source.hpp
+++ b/include/mbgl/storage/online_file_source.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_ONLINE_FILE_SOURCE
-#define MBGL_STORAGE_ONLINE_FILE_SOURCE
+#pragma once
#include <mbgl/storage/file_source.hpp>
@@ -24,5 +23,3 @@ private:
};
} // namespace mbgl
-
-#endif
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp
index 01c2ee4e39..62ee549663 100644
--- a/include/mbgl/storage/resource.hpp
+++ b/include/mbgl/storage/resource.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_RESOURCE
-#define MBGL_STORAGE_RESOURCE
+#pragma once
#include <mbgl/storage/response.hpp>
#include <mbgl/util/optional.hpp>
@@ -68,5 +67,3 @@ public:
};
} // namespace mbgl
-
-#endif
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index f140e42b02..83227573cf 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -1,5 +1,4 @@
-#ifndef MBGL_STORAGE_RESPONSE
-#define MBGL_STORAGE_RESPONSE
+#pragma once
#include <mbgl/util/chrono.hpp>
#include <mbgl/util/optional.hpp>
@@ -56,5 +55,3 @@ public:
std::ostream& operator<<(std::ostream&, Response::Error::Reason);
} // namespace mbgl
-
-#endif