mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kioslave: use constant reference as argument type for DeviceCache::contains()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
6220968ad6
commit
b36ba5774e
3 changed files with 3 additions and 4 deletions
|
@ -217,7 +217,7 @@ QHash<QString, CachedDevice*> DeviceCache::getAll()
|
|||
return nameCache;
|
||||
}
|
||||
|
||||
bool DeviceCache::contains(QString string, bool isUdi)
|
||||
bool DeviceCache::contains(const QString& string, bool isUdi)
|
||||
{
|
||||
processEvents();
|
||||
|
||||
|
|
|
@ -84,8 +84,8 @@ private slots:
|
|||
|
||||
public:
|
||||
QHash< QString, CachedDevice* > getAll();
|
||||
CachedDevice* get ( const QString& string, bool isUdi = false );
|
||||
bool contains(QString string, bool isUdi = false);
|
||||
CachedDevice* get(const QString& string, bool isUdi = false);
|
||||
bool contains(const QString& string, bool isUdi = false);
|
||||
int size();
|
||||
};
|
||||
|
||||
|
|
|
@ -437,7 +437,6 @@ void MTPSlave::mimetype(const KUrl& url)
|
|||
}
|
||||
} else {
|
||||
error(ERR_DOES_NOT_EXIST, url.path());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue