remove some obviated const_casts

This commit is contained in:
Martin Michelsen
2022-02-05 19:23:08 -08:00
parent 04b21f34d4
commit 64d6b69a8b
9 changed files with 32 additions and 35 deletions
+1 -1
View File
@@ -72,6 +72,6 @@ size_t add_color_inplace(T* a) {
template <typename T>
void add_color_inplace(std::basic_string<T>& a, size_t header_bytes) {
size_t count = add_color_inplace(const_cast<T*>(a.data() + header_bytes));
size_t count = add_color_inplace(a.data() + header_bytes);
a.resize(count + header_bytes);
}