diff options
author | Keuin <[email protected]> | 2022-04-13 16:24:16 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-13 16:24:16 +0800 |
commit | 2036ad08bfae6bc14ab3285d73fdccd382c1f1e8 (patch) | |
tree | 7dd7159490372b9937901ade1bf7038702e214ac | |
parent | d802e8367e7709966747efbe57c90f1b8a08f83b (diff) |
Remove const qualifier to gain move semantic.
-rw-r--r-- | bitmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ using pixel8b = pixel<uint8_t>; template<typename T> class bitmap { - const unsigned width, height; + unsigned width, height; std::vector<pixel<T>> content; // pixels scanned by rows, from top to bottom pixel<T> &image(unsigned x, unsigned y) { |