mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kate: const-ify the argument of KateFileBrowser::setDir()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0ccc580f03
commit
f9dd7a42e8
2 changed files with 4 additions and 4 deletions
|
@ -200,14 +200,14 @@ bool kateFileSelectorIsReadable (const KUrl& url)
|
|||
return dir.exists ();
|
||||
}
|
||||
|
||||
void KateFileBrowser::setDir(KUrl u)
|
||||
void KateFileBrowser::setDir(const KUrl& url)
|
||||
{
|
||||
KUrl newurl;
|
||||
|
||||
if (!u.isValid())
|
||||
if (!url.isValid())
|
||||
newurl.setPath(QDir::homePath());
|
||||
else
|
||||
newurl = u;
|
||||
newurl = url;
|
||||
|
||||
QString pathstr = newurl.path(KUrl::AddTrailingSlash);
|
||||
newurl.setPath(pathstr);
|
||||
|
|
|
@ -68,7 +68,7 @@ class KateFileBrowser : public KVBox
|
|||
|
||||
public Q_SLOTS:
|
||||
void slotFilterChange(const QString&);
|
||||
void setDir(KUrl);
|
||||
void setDir(const KUrl& url);
|
||||
void setDir( const QString& url ) { setDir( KUrl( url ) ); }
|
||||
void selectorViewChanged( QAbstractItemView * );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue