forked from qt-creator/qt-creator
Git: Some more QStringList cleanup
Change-Id: I0c6e8f768ee46985dab8ae14f88f2bc8d34fed26 Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
fedf5de551
commit
cfc8ed41c7
@@ -105,13 +105,13 @@ bool GitVersionControl::vcsOpen(const QString & /*fileName*/)
|
||||
bool GitVersionControl::vcsAdd(const QString & fileName)
|
||||
{
|
||||
const QFileInfo fi(fileName);
|
||||
return m_client->synchronousAdd(fi.absolutePath(), QStringList(fi.fileName()));
|
||||
return m_client->synchronousAdd(fi.absolutePath(), { fi.fileName() });
|
||||
}
|
||||
|
||||
bool GitVersionControl::vcsDelete(const QString & fileName)
|
||||
{
|
||||
const QFileInfo fi(fileName);
|
||||
return m_client->synchronousDelete(fi.absolutePath(), true, QStringList(fi.fileName()));
|
||||
return m_client->synchronousDelete(fi.absolutePath(), true, { fi.fileName() });
|
||||
}
|
||||
|
||||
bool GitVersionControl::vcsMove(const QString &from, const QString &to)
|
||||
|
||||
Reference in New Issue
Block a user