mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
That's what trimspace is for. :)
This commit is contained in:
parent
590f02fe0e
commit
5e020e0281
@ -317,10 +317,7 @@ void legacy_cpu_device::device_start()
|
||||
int colon = tempstr.chr(0, ':');
|
||||
int length = tempstr.len() - colon - 1;
|
||||
|
||||
while (colon>0 && isspace(tempstr[colon-1]))
|
||||
colon--;
|
||||
|
||||
tempstr.substr(0, colon);
|
||||
tempstr.substr(0, colon).trimspace();
|
||||
|
||||
astring formatstr;
|
||||
formatstr.printf("%%%ds", length);
|
||||
|
Loading…
Reference in New Issue
Block a user