Commit 8ace1378 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectSettingValue: Avoid useless realocations.

parent 230f5969
......@@ -59,6 +59,7 @@ class EffectSettingValue : public SettingValue
{
delete[] m_paramBuff; //Won't hurt if paramBuff is NULL
m_paramBuff = new qint8[size];
m_buffSize = size;
}
memcpy( m_paramBuff, ptr, size );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment