From 499cf740abe8d6102f887d7b7d1cd6750bc83d44 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 6 Sep 2005 01:15:24 +0000 Subject: 2005-09-05 Frank Ch. Eigler PR 1289 * translate.cxx (lex_cast_qstring): Correct "cast" of object to string containing more than one word. * tapset.cxx (lex_cast_qstring): Ditto. (dwarf_derived_module::emit_probe_entries): Emit and use a generic fault_handler. --- translate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index b71ef379..cca6cad6 100644 --- a/translate.cxx +++ b/translate.cxx @@ -36,9 +36,9 @@ lex_cast_qstring(IN const & in) { stringstream ss; string out, out2; - if (!(ss << in && ss >> out)) + if (!(ss << in)) throw runtime_error("bad lexical cast"); - + out = ss.str(); out2 += '"'; for (unsigned i=0; i