mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove pointless bool return value on ListFolder
This commit is contained in:
@@ -285,7 +285,7 @@ struct IReplayManager
|
||||
|
||||
virtual QStringList GetRemoteSupport() = 0;
|
||||
virtual void GetHomeFolder(bool synchronous, DirectoryBrowseCallback cb) = 0;
|
||||
virtual bool ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb) = 0;
|
||||
virtual void ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb) = 0;
|
||||
virtual QString CopyCaptureToRemote(const QString &localpath, QWidget *window) = 0;
|
||||
virtual void CopyCaptureFromRemote(const QString &remotepath, const QString &localpath,
|
||||
QWidget *window) = 0;
|
||||
|
||||
@@ -127,10 +127,10 @@ void ReplayManager::GetHomeFolder(bool synchronous, DirectoryBrowseCallback cb)
|
||||
cb(home.c_str(), rdctype::array<PathEntry>());
|
||||
}
|
||||
|
||||
bool ReplayManager::ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb)
|
||||
void ReplayManager::ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb)
|
||||
{
|
||||
if(!m_Remote)
|
||||
return false;
|
||||
return;
|
||||
|
||||
QByteArray pathUTF8 = path.toUtf8();
|
||||
|
||||
@@ -144,7 +144,7 @@ bool ReplayManager::ListFolder(QString path, bool synchronous, DirectoryBrowseCa
|
||||
BlockInvoke(lambda);
|
||||
else
|
||||
AsyncInvoke(lambda);
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
rdctype::array<PathEntry> contents;
|
||||
@@ -157,7 +157,7 @@ bool ReplayManager::ListFolder(QString path, bool synchronous, DirectoryBrowseCa
|
||||
|
||||
cb(pathUTF8.data(), contents);
|
||||
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
QString ReplayManager::CopyCaptureToRemote(const QString &localpath, QWidget *window)
|
||||
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
|
||||
QStringList GetRemoteSupport();
|
||||
void GetHomeFolder(bool synchronous, DirectoryBrowseCallback cb);
|
||||
bool ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb);
|
||||
void ListFolder(QString path, bool synchronous, DirectoryBrowseCallback cb);
|
||||
QString CopyCaptureToRemote(const QString &localpath, QWidget *window);
|
||||
void CopyCaptureFromRemote(const QString &remotepath, const QString &localpath, QWidget *window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user