[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:
@@ -5,9 +5,9 @@
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
SymbolAnnotationImpl::SymbolAnnotationImpl(const AnnotationID id_, const SymbolAnnotation& annotation_)
|
||||
SymbolAnnotationImpl::SymbolAnnotationImpl(AnnotationID id_, SymbolAnnotation annotation_)
|
||||
: id(id_),
|
||||
annotation(annotation_) {
|
||||
annotation(std::move(annotation_)) {
|
||||
}
|
||||
|
||||
void SymbolAnnotationImpl::updateLayer(const CanonicalTileID& tileID, AnnotationTileLayer& layer) const {
|
||||
|
||||
Reference in New Issue
Block a user