summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx4
1 files changed, 2 insertions, 2 deletions
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<out.length(); i++)
{