summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/file_source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-21 14:12:46 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-21 14:25:12 -0800
commita3ec4cf17e3d61ef2cdd2083d089bfb3fc72761e (patch)
tree21f99bb8feac1686224acf49644c7463cc8aeef2 /include/mbgl/storage/file_source.hpp
parentc3940cf08251f9fc9bfce4911e7b24f5985ae105 (diff)
downloadqtlocation-mapboxgl-a3ec4cf17e3d61ef2cdd2083d089bfb3fc72761e.tar.gz
Use noncopyable
Diffstat (limited to 'include/mbgl/storage/file_source.hpp')
-rw-r--r--include/mbgl/storage/file_source.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp
index 4b17cd29a7..3839ae22e1 100644
--- a/include/mbgl/storage/file_source.hpp
+++ b/include/mbgl/storage/file_source.hpp
@@ -3,6 +3,7 @@
#include <mbgl/storage/resource_type.hpp>
#include <mbgl/storage/request.hpp>
+#include <mbgl/util/noncopyable.hpp>
#include <string>
#include <unordered_map>
@@ -16,18 +17,12 @@ namespace mbgl {
class BaseRequest;
class SQLiteStore;
-class FileSource {
+class FileSource : public util::noncopyable {
private:
- FileSource(const FileSource &) = delete;
- FileSource(FileSource &&) = delete;
- FileSource& operator=(const FileSource &) = delete;
- FileSource& operator=(FileSource &&) = delete;
-
public:
FileSource(uv_loop_t *loop, const std::string &path);
~FileSource();
-public:
// Stores and retrieves the base path/URL for relative requests
void setBase(const std::string &value);
const std::string &getBase() const;