From e946184d2ca1378e6ee1ae22bf0cce38f4143417 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 4 Feb 2022 10:37:52 +0100 Subject: [PATCH] Fix typo. --- core/containers/vector.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/containers/vector.h b/core/containers/vector.h index dc0b252..f1d0ef7 100644 --- a/core/containers/vector.h +++ b/core/containers/vector.h @@ -29,8 +29,8 @@ public: void append_array(const Vector &other); int find(const T &val) const; - int *dataw(); - const int *data() const; + T *dataw(); + const T *data() const; const T &operator[](const int index) const; T &operator[](const int index); @@ -202,12 +202,12 @@ int Vector::find(const T &val) const { } template -int *Vector::dataw() { +T *Vector::dataw() { return _data; } template -const int *Vector::data() const { +const T *Vector::data() const { return _data; }