1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Remove a non-const reference

This commit is contained in:
David Sansome 2012-08-26 14:22:38 +01:00
parent acbf21be07
commit 1e89fc5bf4

View File

@ -138,12 +138,12 @@ void SavedRadio::Edit() {
return;
int i = streams_.indexOf(Stream(QUrl(context_item->data(InternetModel::Role_Url).toUrl())));
Stream& stream = streams_[i];
stream.name_ = edit_dialog_->name();
stream.url_ = edit_dialog_->url();
Stream* stream = &streams_[i];
stream->name_ = edit_dialog_->name();
stream->url_ = edit_dialog_->url();
context_item->setText(stream.name_);
context_item->setData(stream.url_, InternetModel::Role_Url);
context_item->setText(stream->name_);
context_item->setData(stream->url_, InternetModel::Role_Url);
SaveStreams();
}