[tidy] Check modernize-pass-by-value
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
This commit is contained in:
@@ -7,8 +7,7 @@ namespace mbgl {
|
||||
|
||||
static TileObserver nullObserver;
|
||||
|
||||
Tile::Tile(const OverscaledTileID& id_)
|
||||
: id(id_), observer(&nullObserver) {
|
||||
Tile::Tile(OverscaledTileID id_) : id(std::move(id_)), observer(&nullObserver) {
|
||||
}
|
||||
|
||||
Tile::~Tile() = default;
|
||||
|
||||
Reference in New Issue
Block a user