Add const & in good places to avoid promoe to copy that much data.
This commit is contained in:
parent
403b9257cc
commit
429cf316ed
7 changed files with 25 additions and 25 deletions
|
@ -55,12 +55,12 @@ ShadedDisplay::ShadedDisplay (QWidget *parent) : SkinDisplay (parent)
|
|||
this, SLOT(setStatus(uint)));
|
||||
connect (xmmsh, SIGNAL(playtimeChanged(uint)),
|
||||
this, SLOT(setPlaytime(uint)));
|
||||
connect (xmmsh, SIGNAL(currentSong (QHash<QString, QString>)),
|
||||
this, SLOT(setMediainfo (QHash<QString, QString>)));
|
||||
connect (xmmsh, SIGNAL(currentSong (const QHash<QString, QString> &)),
|
||||
this, SLOT(setMediainfo (const QHash<QString, QString> &)));
|
||||
}
|
||||
|
||||
void
|
||||
ShadedDisplay::setMediainfo (QHash<QString, QString> h)
|
||||
ShadedDisplay::setMediainfo (const QHash<QString, QString> &h)
|
||||
{
|
||||
QString n;
|
||||
if (h.contains ("artist") && h.contains ("album") && h.contains ("title")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue