Fix constness of Submaps to match the new API. (#136)

master
Wolfgang Hess 2016-10-20 12:01:56 +02:00 committed by GitHub
parent 7f7933f26d
commit af78dcbe55
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ bool Node::HandleSubmapQuery(
carto::common::MutexLocker lock(&mutex_);
// TODO(hrapp): return error messages and extract common code from MapBuilder.
carto::mapping::Submaps* const submaps =
const carto::mapping::Submaps* const submaps =
map_builder_.GetTrajectoryBuilder(kTrajectoryBuilderId)->submaps();
if (request.submap_id < 0 || request.submap_id >= submaps->size()) {
return false;