forked from qt-creator/qt-creator
KitInformation: Compile for GCC 4.7.2
Work around compiler bug. Change-Id: I2ed209ff7920fc54cdcd89f8beb601fc85909478 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -424,22 +424,22 @@ KitInformation::ItemList DeviceKitInformation::toUserOutput(const Kit *k) const
|
||||
void DeviceKitInformation::addToMacroExpander(Kit *kit, Utils::MacroExpander *expander) const
|
||||
{
|
||||
expander->registerVariable("Device:HostAddress", tr("Host address"),
|
||||
[kit]() -> QString {
|
||||
[this, kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitInformation::device(kit);
|
||||
return device ? device->sshParameters().host : QString();
|
||||
});
|
||||
expander->registerVariable("Device:SshPort", tr("SSH port"),
|
||||
[kit]() -> QString {
|
||||
[this, kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitInformation::device(kit);
|
||||
return device ? QString::number(device->sshParameters().port) : QString();
|
||||
});
|
||||
expander->registerVariable("Device:UserName", tr("User name"),
|
||||
[kit]() -> QString {
|
||||
[this, kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitInformation::device(kit);
|
||||
return device ? device->sshParameters().userName : QString();
|
||||
});
|
||||
expander->registerVariable("Device:KeyFile", tr("Private key file"),
|
||||
[kit]() -> QString {
|
||||
[this, kit]() -> QString {
|
||||
const IDevice::ConstPtr device = DeviceKitInformation::device(kit);
|
||||
return device ? device->sshParameters().privateKeyFile : QString();
|
||||
});
|
||||
|
Reference in New Issue
Block a user