forked from qt-creator/qt-creator
Utils::FileUtils: Use Utils::FileName for file paths instead of QString.
Change-Id: I9ee4c0760820e9299e238c116936ce8ef140c727 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
@@ -138,7 +138,7 @@ bool BuildableHelperLibrary::copyFiles(const QString &sourcePath,
|
||||
QString *errorMessage)
|
||||
{
|
||||
// try remove the directory
|
||||
if (!FileUtils::removeRecursively(targetDirectory, errorMessage))
|
||||
if (!FileUtils::removeRecursively(FileName::fromString(targetDirectory), errorMessage))
|
||||
return false;
|
||||
if (!QDir().mkpath(targetDirectory)) {
|
||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::DebuggingHelperLibrary", "The target directory %1 could not be created.").arg(targetDirectory);
|
||||
|
||||
Reference in New Issue
Block a user