FilesystemWidget: Pass path QString by const reference instead of by value in ExtractDirectory()

Makes it consistent with the surrounding API.

Also corrects a typo in ExtractFile's parameter list.
This commit is contained in:
Lioncash 2018-03-27 21:55:16 -04:00
parent fc531993a9
commit aa42534fed
2 changed files with 4 additions and 3 deletions

View File

@ -238,7 +238,7 @@ void FilesystemWidget::ExtractSystemData(const DiscIO::Partition& partition, con
QMessageBox::critical(nullptr, tr("Error"), tr("Failed to extract system data."));
}
void FilesystemWidget::ExtractDirectory(const DiscIO::Partition& partition, const QString path,
void FilesystemWidget::ExtractDirectory(const DiscIO::Partition& partition, const QString& path,
const QString& out)
{
const DiscIO::FileSystem* filesystem = m_volume->GetFileSystem(partition);

View File

@ -36,8 +36,9 @@ private:
void ShowContextMenu(const QPoint&);
void ExtractPartition(const DiscIO::Partition& partition, const QString& out);
void ExtractDirectory(const DiscIO::Partition& partition, const QString path, const QString& out);
void ExtractFile(const DiscIO::Partition& pratition, const QString& path, const QString& out);
void ExtractDirectory(const DiscIO::Partition& partition, const QString& path,
const QString& out);
void ExtractFile(const DiscIO::Partition& partition, const QString& path, const QString& out);
void ExtractSystemData(const DiscIO::Partition& partition, const QString& out);
void CheckIntegrity(const DiscIO::Partition& partition);