95 |
95 |
96 delete[] m_data; |
96 delete[] m_data; |
97 m_allocatedSize = newsize; |
97 m_allocatedSize = newsize; |
98 m_data = new unsigned char[newsize]; |
98 m_data = new unsigned char[newsize]; |
99 |
99 |
100 if (olddata > 0L) |
100 if (oldsize > 0L) |
101 memcpy (m_data, olddata, min (oldsize, newsize)); |
101 memcpy (m_data, olddata, min (oldsize, newsize)); |
102 } |
102 } |
103 |
103 |
104 // ------------------------------------------------------------------------------------------------- |
104 // ------------------------------------------------------------------------------------------------- |
105 // |
105 // |