Since previous fix made lot of issues, found better solution for this astring bool problem (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2010-08-22 12:36:56 +00:00
parent ca59516c2f
commit 82c98dfa1b
2 changed files with 2 additions and 2 deletions

View File

@ -2753,7 +2753,7 @@ UINT32 device_debug::dasm_wrapped(astring &buffer, offs_t pc)
// disassemble to our buffer // disassemble to our buffer
buffer.expand(200); buffer.expand(200);
return disassemble(buffer, pc, opbuf, argbuf); return disassemble(buffer.text, pc, opbuf, argbuf);
} }

View File

@ -333,7 +333,7 @@ public:
astring &reset() { return cpy(""); } astring &reset() { return cpy(""); }
astring &expand(int length) { astring_expand(this, length); return *this; } astring &expand(int length) { astring_expand(this, length); return *this; }
operator char *() { return (this->text[0] != 0) ? this->text : NULL; } operator bool() const { return this->text[0] != 0; }
operator const char *() const { return astring_c(this); } operator const char *() const { return astring_c(this); }
const char *cstr() const { return astring_c(this); } const char *cstr() const { return astring_c(this); }
int len() const { return astring_len(this); } int len() const { return astring_len(this); }