Fixed reference + do not clear stream in adapters.

This commit is contained in:
Vincent Richard 2006-11-15 10:41:35 +00:00
parent ae0cd86c4f
commit 64d91947c3
3 changed files with 3 additions and 3 deletions

View File

@ -158,6 +158,8 @@ void charsetConverter::convert(utility::inputStream& in, utility::outputStream&
void charsetConverter::convert(const string& in, string& out)
{
out.clear();
utility::inputStreamStringAdapter is(in);
utility::outputStreamStringAdapter os(out);

View File

@ -112,7 +112,6 @@ void outputStreamAdapter::flush()
outputStreamStringAdapter::outputStreamStringAdapter(string& buffer)
: m_buffer(buffer)
{
m_buffer.clear();
}
@ -134,7 +133,6 @@ void outputStreamStringAdapter::flush()
outputStreamByteArrayAdapter::outputStreamByteArrayAdapter(byteArray& array)
: m_array(array)
{
m_array.clear();
}

View File

@ -252,7 +252,7 @@ public:
private:
byteArray m_array;
byteArray& m_array;
};