forked from qt-creator/qt-creator
Use Utils::FileName in abi
Use FileName when passing in a file to extract ABIs from. Also convert some helper functions in baseqtversion to use FileNames in favor of normal strings. Change-Id: I41c724c4c05bb4ff0d8b832f84fffa08d64762d9 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -458,7 +458,7 @@ static QToolButton *toolButton(QAction *action)
|
||||
|
||||
static Abi anyAbiOfBinary(const QString &fileName)
|
||||
{
|
||||
QList<Abi> abis = Abi::abisOfBinary(fileName);
|
||||
QList<Abi> abis = Abi::abisOfBinary(Utils::FileName::fromString(fileName));
|
||||
if (abis.isEmpty())
|
||||
return Abi();
|
||||
return abis.at(0);
|
||||
@@ -1726,7 +1726,7 @@ void DebuggerPluginPrivate::gdbServerStarted(const QString &channel,
|
||||
return;
|
||||
}
|
||||
|
||||
QList<Abi> abis = Abi::abisOfBinary(localExecutable);
|
||||
QList<Abi> abis = Abi::abisOfBinary(Utils::FileName::fromString(localExecutable));
|
||||
if (abis.isEmpty()) {
|
||||
QMessageBox::warning(mainWindow(), tr("Warning"),
|
||||
tr("Cannot find ABI for remote process \"%1\".")
|
||||
|
||||
Reference in New Issue
Block a user