aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/kstd/include/kstd/vector6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/kstd/include/kstd/vector b/libs/kstd/include/kstd/vector
index 7568cb6..41b380e 100644
--- a/libs/kstd/include/kstd/vector
+++ b/libs/kstd/include/kstd/vector
@@ -85,7 +85,7 @@ namespace kstd
vector(vector<value_type> const & other)
: _size(other._size)
, _capacity(other._capacity)
- , _data(new value_type[_capacity]{})
+ , _data(new value_type[_capacity]())
{
std::ranges::copy(other, _data);
}
@@ -104,7 +104,7 @@ namespace kstd
delete[] _data;
_size = other._size;
_capacity = other._capacity;
- _data = new value_type[_capacity]{};
+ _data = new value_type[_capacity]();
std::ranges::copy(other, _data);
return *this;
}
@@ -490,7 +490,7 @@ namespace kstd
}
_capacity = new_capacity;
- auto temp = new value_type[_capacity]{};
+ auto temp = new value_type[_capacity]();
std::ranges::copy(begin(), end(), temp);
delete[] _data;
_data = temp;