Commit aec1a417 authored by Laurent Montel's avatar Laurent Montel 😁

Add const'ref

parent e22bb4b9
......@@ -423,7 +423,7 @@ DeleteJob::DeleteJob( POPSession *popSession )
{
}
void DeleteJob::setDeleteIds( const QList<int> ids )
void DeleteJob::setDeleteIds(const QList<int> &ids )
{
mIdsToDelete = ids;
}
......@@ -458,7 +458,7 @@ FetchJob::FetchJob ( POPSession *session )
{
}
void FetchJob::setFetchIds( const QList<int> ids, QList<int> sizes )
void FetchJob::setFetchIds( const QList<int> &ids, const QList<int> &sizes )
{
mIdsPendingDownload = ids;
foreach( int size, sizes )
......
......@@ -157,7 +157,7 @@ class DeleteJob : public SlaveBaseJob
Q_OBJECT
public:
DeleteJob( POPSession *popSession );
void setDeleteIds( const QList<int> ids );
void setDeleteIds( const QList<int> &ids );
virtual void start();
QList<int> deletedIDs() const;
......@@ -182,7 +182,7 @@ class FetchJob : public SlaveBaseJob
public:
FetchJob( POPSession *session );
void setFetchIds( const QList<int> ids, QList<int> sizes );
void setFetchIds( const QList<int> &ids, const QList<int> &sizes );
virtual void start();
private slots:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment