The assignments were redundunt as in the next line only, the same variable was being assigned to some other value.
Change-Id: Iebe65db1bb1705466314a968117d7cc5a678ccff
{
m_rows = rows;
m_cols = cols;
- m_mat = NULL;
m_mat = new TYPE *[m_rows];
for (int i = 0; i < m_rows; i++)
{
m_rows = m.m_rows;
m_cols = m.m_cols;
- m_mat = NULL;
m_mat = new TYPE *[m_rows];
for (int i = 0; i < m_rows; i++)
{
m_rows = rows;
m_cols = cols;
- m_mat = NULL;
m_mat = new TYPE *[m_rows];
for (int i = 0; i < m_rows; i++)
vect<TYPE>::vect(const int size)
{
m_size = size;
- m_vec = NULL;
m_vec = new TYPE [m_size]();
}
vect<TYPE>::vect(const int size, TYPE *vec_data)
{
m_size = size;
- m_vec = NULL;
m_vec = new TYPE [m_size];
for (int j = 0; j < m_size; j++)
vect<TYPE>::vect(const vect<TYPE>& v)
{
m_size = v.m_size;
- m_vec = NULL;
m_vec = new TYPE [m_size];
for (int q = 0; q < m_size; q++)