From 321e9d8b134b766f83353e1a27bf160500cadc7e 2017-06-30 08:45:34 From: mperrinel Date: 2017-06-30 08:45:34 Subject: [PATCH] Update ArrayData to make it better --- diff --git a/core/include/Data/ArrayData.h b/core/include/Data/ArrayData.h index 5be205f..c466119 100644 --- a/core/include/Data/ArrayData.h +++ b/core/include/Data/ArrayData.h @@ -44,9 +44,9 @@ public: * @remarks this method is only available for a unidimensional ArrayData */ template > - QVector data() const noexcept + const QVector &data() const noexcept { - return m_Data.at(0); + return m_Data[0]; } /** @@ -61,10 +61,10 @@ public: // TODO Comment template > - void merge(ArrayData<1> *arrayData) + void merge(const ArrayData<1> &arrayData) { if (!m_Data.empty()) { - m_Data[0] += arrayData->data(); + m_Data[0] += arrayData.data(); } }