~ricmm/media-hub/multiple-sessions

« back to all changes in this revision

Viewing changes to src/core/media/track_list_implementation.cpp

MergedĀ lp:~thomas-voss/media-hub/switch-to-properties-cpp

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "engine.h"
22
22
 
23
 
#include <core/media/property.h>
24
 
 
25
 
namespace dbus = org::freedesktop::dbus;
 
23
namespace dbus = core::dbus;
26
24
namespace media = core::ubuntu::media;
27
25
 
28
26
struct media::TrackListImplementation::Private
97
95
{
98
96
    auto result = tracks().update([id](TrackList::Container& container)
99
97
    {
100
 
        container.remove(id);
 
98
        container.erase(std::find(container.begin(), container.end(), id));
101
99
        return true;
102
100
    });
103
101