More message logging bugs fixed...
This commit is contained in:
@@ -9,17 +9,21 @@ LLMessageLogEntry::LLMessageLogEntry(EType type, LLHost from_host, LLHost to_hos
|
|||||||
{
|
{
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
mData.resize(data_size/sizeof(U8));
|
mData.resize(data_size);
|
||||||
mData.assign(data,data + data_size/sizeof(U8));
|
mData.assign(data,data + data_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LLMessageLogEntry::LLMessageLogEntry(EType type, LLHost from_host, LLHost to_host, std::vector<U8> data, S32 data_size)
|
LLMessageLogEntry::LLMessageLogEntry(EType type, LLHost from_host, LLHost to_host, std::vector<U8> data, S32 data_size)
|
||||||
: mType(type),
|
: mType(type),
|
||||||
mFromHost(from_host),
|
mFromHost(from_host),
|
||||||
mToHost(to_host),
|
mToHost(to_host),
|
||||||
mDataSize(data_size),
|
mDataSize(data_size)
|
||||||
mData(data)
|
|
||||||
{
|
{
|
||||||
|
if(data.size())
|
||||||
|
{
|
||||||
|
mData.resize(data.size());
|
||||||
|
std::copy(data.begin(),data.end(),mData.begin());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LLMessageLogEntry::~LLMessageLogEntry()
|
LLMessageLogEntry::~LLMessageLogEntry()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user