From deaaf23cafac199d2f110dcc4876e557b524be17 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Sat, 24 Jul 2021 10:07:27 +0200 Subject: [PATCH] linter --- src/pfaedle/gtfs/ShapeContainer.tpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/pfaedle/gtfs/ShapeContainer.tpp b/src/pfaedle/gtfs/ShapeContainer.tpp index 1b5c196..60f2b61 100644 --- a/src/pfaedle/gtfs/ShapeContainer.tpp +++ b/src/pfaedle/gtfs/ShapeContainer.tpp @@ -2,8 +2,8 @@ // Chair of Algorithms and Data Structures. // Authors: Patrick Brosi -#include #include +#include // ____________________________________________________________________________ template @@ -15,8 +15,7 @@ ShapeContainer::ShapeContainer() : _lastBuff(0) { unlink(f.c_str()); if (!_storage.good()) { - std::cerr << "Could not open temporary file " << f - << std::endl; + std::cerr << "Could not open temporary file " << f << std::endl; exit(1); } } @@ -83,12 +82,13 @@ std::string ShapeContainer::add(const ad::cppgtfs::gtfs::Shape& s) { for (const auto& p : s.getPoints()) { _writeBuffer.write(reinterpret_cast(&p.lat), sizeof(p.lat)); _writeBuffer.write(reinterpret_cast(&p.lng), sizeof(p.lng)); - _writeBuffer.write(reinterpret_cast(&p.travelDist), sizeof(p.travelDist)); + _writeBuffer.write(reinterpret_cast(&p.travelDist), + sizeof(p.travelDist)); } if (_writeBuffer.tellp() - _lastBuff > 1000 * 5000) { - _lastBuff = _writeBuffer.tellp(); - _storage << _writeBuffer.rdbuf(); + _lastBuff = _writeBuffer.tellp(); + _storage << _writeBuffer.rdbuf(); _writeBuffer.clear(); } @@ -124,7 +124,8 @@ bool ShapeContainer::nextStoragePt( _storage.read(reinterpret_cast(&ret->lat), sizeof(ret->lat)); _storage.read(reinterpret_cast(&ret->lng), sizeof(ret->lng)); - _storage.read(reinterpret_cast(&ret->travelDist), sizeof(ret->travelDist)); + _storage.read(reinterpret_cast(&ret->travelDist), + sizeof(ret->travelDist)); ret->seq = _ptr + 1; ret->id = _curId;