clang format
This commit is contained in:
@@ -33,7 +33,7 @@ void MediaWidget::addPlayerWidget(const std::string &bus_name) {
|
||||
|
||||
auto controller = MprisController::createForPlayer(bus_name);
|
||||
auto widget = std::make_unique<MediaPlayer>(controller);
|
||||
|
||||
|
||||
this->mediaWidgets.emplace(bus_name, std::move(widget));
|
||||
this->container.append(*this->mediaWidgets[bus_name]);
|
||||
}
|
||||
@@ -44,7 +44,7 @@ void MediaWidget::removePlayerWidget(const std::string &bus_name) {
|
||||
if (it == this->mediaWidgets.end()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
this->container.remove(*it->second);
|
||||
this->mediaWidgets.erase(it);
|
||||
}
|
||||
Reference in New Issue
Block a user