diff options
author | unknown <serg@serg.mylan> | 2003-10-30 19:17:57 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2003-10-30 19:17:57 +0100 |
commit | 372e949242e637d0d80a694132a221e3842acdbd (patch) | |
tree | e29f3d04a40a0f1438871abcf54eceb9de6a07e4 /sql/sql_bitmap.h | |
parent | a8b7edda5123969c62101a65aac33b4b0d173e44 (diff) | |
download | mariadb-git-372e949242e637d0d80a694132a221e3842acdbd.tar.gz |
Bitmap post-review fixes
Diffstat (limited to 'sql/sql_bitmap.h')
-rw-r--r-- | sql/sql_bitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_bitmap.h b/sql/sql_bitmap.h index b8e163ce24a..53293e39591 100644 --- a/sql/sql_bitmap.h +++ b/sql/sql_bitmap.h @@ -16,6 +16,7 @@ template <uint default_width> class Bitmap uchar buffer[(default_width+7)/8]; public: Bitmap() { init(); } + Bitmap(Bitmap& from) { *this=from; } Bitmap(uint prefix_to_set) { init(prefix_to_set); } void init() { bitmap_init(&map, buffer, default_width, 0); } void init(uint prefix_to_set) { init(); set_prefix(prefix_to_set); } @@ -24,6 +25,7 @@ public: { init(); memcpy(buffer, map2.buffer, sizeof(buffer)); + return *this; } void set_bit(uint n) { bitmap_set_bit(&map, n); } void clear_bit(uint n) { bitmap_clear_bit(&map, n); } |