Commit 7014b1ce authored by Volker Krause's avatar Volker Krause
Browse files

Add missing detaches in takeXXX() calls

parent 4e3a47d2
......@@ -237,6 +237,7 @@ const std::vector<Stopover>& JourneySection::intermediateStops() const
std::vector<Stopover>&& JourneySection::takeIntermediateStops()
{
d.detach();
return std::move(d->intermediateStops);
}
......@@ -531,6 +532,7 @@ const std::vector<JourneySection>& Journey::sections() const
std::vector<JourneySection>&& Journey::takeSections()
{
d.detach();
return std::move(d->sections);
}
......
......@@ -75,6 +75,7 @@ const std::vector<PlatformSection>& Platform::sections() const
std::vector<PlatformSection>&& Platform::takeSections()
{
d.detach();
return std::move(d->sections);
}
......
......@@ -127,6 +127,7 @@ const std::vector<VehicleSection>& Vehicle::sections() const
std::vector<VehicleSection>&& Vehicle::takeSections()
{
d.detach();
return std::move(d->sections);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment