Skip to content

Commit c137168

Browse files
committed
osmdata: clean up local variable use
1 parent 4ca2ed5 commit c137168

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

osmdata.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,12 @@ void osmdata_t::stop() {
419419
}
420420

421421
// should be the same for all outputs
422-
const bool append = outs[0]->get_options()->append;
422+
auto *opts = outs[0]->get_options();
423423

424424
{
425425
//threaded pending processing
426-
pending_threaded_processor ptp(
427-
mid, outs, outs[0]->get_options()->num_procs, append);
426+
pending_threaded_processor ptp(mid, outs, opts->num_procs,
427+
opts->append);
428428

429429
if (!outs.empty()) {
430430
//This stage takes ways which were processed earlier, but might be
@@ -443,7 +443,6 @@ void osmdata_t::stop() {
443443
// Clustering, index creation, and cleanup.
444444
// All the intensive parts of this are long-running PostgreSQL commands
445445
{
446-
auto *opts = outs[0]->get_options();
447446
osmium::thread::Pool pool(opts->parallel_indexing ? opts->num_procs : 1,
448447
512);
449448

0 commit comments

Comments
 (0)