summaryrefslogtreecommitdiff
path: root/bitmap.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-13 16:24:16 +0800
committerKeuin <[email protected]>2022-04-13 16:24:16 +0800
commit2036ad08bfae6bc14ab3285d73fdccd382c1f1e8 (patch)
tree7dd7159490372b9937901ade1bf7038702e214ac /bitmap.h
parentd802e8367e7709966747efbe57c90f1b8a08f83b (diff)
Remove const qualifier to gain move semantic.
Diffstat (limited to 'bitmap.h')
-rw-r--r--bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.h b/bitmap.h
index 8906ec5..1e35395 100644
--- a/bitmap.h
+++ b/bitmap.h
@@ -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) {