Fix OSX build (nw)

This commit is contained in:
Miodrag Milanovic 2016-01-16 21:00:21 +01:00
parent a23a0abc76
commit 8144b878ab
3 changed files with 5 additions and 5 deletions

View File

@ -204,7 +204,7 @@
[dasmView selectSubviewForDevice:device];
[window setTitle:[NSString stringWithFormat:@"Debug: %s - %s '%s'",
device->machine().system().name,
device->name(),
device->name().c_str(),
device->tag().c_str()]];
}

View File

@ -157,11 +157,11 @@
toView:contentView];
[self addLabel:@"Name:"
withWidth:100
andField:[NSString stringWithUTF8String:device->name()]
andField:[NSString stringWithUTF8String:device->name().c_str()]
toView:contentView];
[self addLabel:@"Shortname:"
withWidth:100
andField:[NSString stringWithUTF8String:device->shortname()]
andField:[NSString stringWithUTF8String:device->shortname().c_str()]
toView:contentView];
// add interfaces if present

View File

@ -75,12 +75,12 @@
- (NSString *)tag {
return (device == &machine->root_device()) ? @"<root>"
: [NSString stringWithUTF8String:device->basetag()];
: [NSString stringWithUTF8String:device->basetag().c_str()];
}
- (NSString *)name {
return [NSString stringWithUTF8String:device->name()];
return [NSString stringWithUTF8String:device->name().c_str()];
}