Skip to content

Commit 70a6930

Browse files
committed
Plugins::FileTransfer: modify parameters of function
1 parent 6355887 commit 70a6930

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Plugins/FileTransfer/BackendFileTransfer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ void CBackendFileTransfer::slotRename(const QString &oldName, const QString &new
245245
WakeUp();
246246
}
247247

248-
void CBackendFileTransfer::slotGetDir(CRemoteFileSystem *p)
248+
void CBackendFileTransfer::slotGetDir(CRemoteFileSystem *pRemoteFileSystem)
249249
{
250-
if(!p || p->GetPath().isEmpty())
250+
if(!pRemoteFileSystem || pRemoteFileSystem->GetPath().isEmpty())
251251
return;
252-
QString szPath = p->GetPath();
252+
QString szPath = pRemoteFileSystem->GetPath();
253253
CFileTransferEvent* pEvent = new CFileTransferEvent(
254254
CFileTransferEvent::Command::GetDir, szPath);
255-
pEvent->m_pRemoteFileSystem = (CRemoteFileSystem*) p;
255+
pEvent->m_pRemoteFileSystem = (CRemoteFileSystem*) pRemoteFileSystem;
256256
QCoreApplication::postEvent(this, pEvent);
257257
WakeUp();
258258
}

Plugins/FileTransfer/BackendFileTransfer.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ class CBackendFileTransfer : public CBackend
2929
private Q_SLOTS:
3030
void slotMakeDir(const QString& szDir);
3131
void slotRemoveDir(const QString& szDir);
32-
void slotGetDir(CRemoteFileSystem*);
32+
void slotGetDir(CRemoteFileSystem* pRemoteFileSystem);
3333
void slotRemoveFile(const QString& szFile);
3434
void slotRename(const QString& oldName, const QString& newName);
3535
Q_SIGNALS:
36-
void sigGetDir(CRemoteFileSystem*, QVector<QSharedPointer<CRemoteFileSystem> > contents, bool bEnd);
36+
void sigGetDir(CRemoteFileSystem* pRemoteFileSystem,
37+
QVector<QSharedPointer<CRemoteFileSystem> > contents,
38+
bool bEnd);
3739
private Q_SLOTS:
3840
void slotStartFileTransfer(QSharedPointer<CFileTransfer> f);
3941
void slotStopFileTransfer(QSharedPointer<CFileTransfer> f);

0 commit comments

Comments
 (0)