summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-12 13:53:35 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-13 23:32:05 +0300
commit4161d197fdb59587b3ef5deac321605fc911a2ab (patch)
tree0bf4fa48a4e42fac0afce07f099ebace3ff5a698 /include/mbgl/storage
parent92f605df326ac4b1f4dd65928d6350b97eea6096 (diff)
downloadqtlocation-mapboxgl-4161d197fdb59587b3ef5deac321605fc911a2ab.tar.gz
[tidy] Check modernize-pass-by-value
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r--include/mbgl/storage/offline.hpp6
-rw-r--r--include/mbgl/storage/resource.hpp4
-rw-r--r--include/mbgl/storage/response.hpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp
index 990c8470bb..bbd8674e5a 100644
--- a/include/mbgl/storage/offline.hpp
+++ b/include/mbgl/storage/offline.hpp
@@ -27,7 +27,7 @@ class Tileset;
*/
class OfflineTilePyramidRegionDefinition {
public:
- OfflineTilePyramidRegionDefinition(const std::string&, const LatLngBounds&, double, double, float);
+ OfflineTilePyramidRegionDefinition(std::string, LatLngBounds, double, double, float);
/* Private */
std::vector<CanonicalTileID> tileCover(SourceType, uint16_t tileSize, const Tileset&) const;
@@ -200,8 +200,8 @@ private:
friend class OfflineDatabase;
OfflineRegion(int64_t id,
- const OfflineRegionDefinition&,
- const OfflineRegionMetadata&);
+ OfflineRegionDefinition,
+ OfflineRegionMetadata);
const int64_t id;
const OfflineRegionDefinition definition;
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp
index a75de380a1..31df069952 100644
--- a/include/mbgl/storage/resource.hpp
+++ b/include/mbgl/storage/resource.hpp
@@ -33,10 +33,10 @@ public:
Required = true,
};
- Resource(Kind kind_, const std::string& url_, optional<TileData> tileData_ = {}, Necessity necessity_ = Required)
+ Resource(Kind kind_, std::string url_, optional<TileData> tileData_ = {}, Necessity necessity_ = Required)
: kind(kind_),
necessity(necessity_),
- url(url_),
+ url(std::move(url_)),
tileData(std::move(tileData_)) {
}
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index 83227573cf..6c79f5e181 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -49,7 +49,7 @@ public:
std::string message;
public:
- Error(Reason, const std::string& = "");
+ Error(Reason, std::string = "");
};
std::ostream& operator<<(std::ostream&, Response::Error::Reason);