summaryrefslogtreecommitdiff
path: root/sql/sql_bitmap.h
diff options
context:
space:
mode:
authorserg@serg.mylan <>2003-10-30 19:17:57 +0100
committerserg@serg.mylan <>2003-10-30 19:17:57 +0100
commit9c4049ad125e46eb89fb97628b796a7cf07e73f3 (patch)
treee29f3d04a40a0f1438871abcf54eceb9de6a07e4 /sql/sql_bitmap.h
parenteb93b6b81a51bb2bea93b5907d85559c579a4a54 (diff)
downloadmariadb-git-9c4049ad125e46eb89fb97628b796a7cf07e73f3.tar.gz
Bitmap post-review fixes
Diffstat (limited to 'sql/sql_bitmap.h')
-rw-r--r--sql/sql_bitmap.h2
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); }