Switched to using appendChars

git-svn-id: svn://10.0.0.236/trunk@58640 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waldemar%netscape.com
2000-01-25 22:56:48 +00:00
parent a92dbd7cc6
commit 71029d488f
2 changed files with 2 additions and 6 deletions

View File

@@ -146,9 +146,7 @@ static void readEvalPrint(istream &in)
while (promptLine(in, line, buffer.empty() ? "js> " : "")) {
if (!buffer.empty())
buffer += uni::lf;
String::size_type bufferLen = buffer.size();
buffer.append(line.size(), uni::null);
std::transform(line.begin(), line.end(), buffer.begin()+bufferLen, widen);
appendChars(buffer, line.data(), line.size());
if (!buffer.empty()) {
showString(std::cout, buffer);
std::cout << std::endl;