summaryrefslogtreecommitdiff
path: root/sql/sql_bitmap.h
diff options
context:
space:
mode:
authorunknown <konstantin@oak.local>2003-11-21 19:16:19 +0300
committerunknown <konstantin@oak.local>2003-11-21 19:16:19 +0300
commitac49ce88e69aa622eace909a6be85b722e7f41ee (patch)
tree2840d6f143c8d209593f7a40d2645ef16326d21e /sql/sql_bitmap.h
parentbaae790c963d695613c290e8f9f8ce5ca0853b33 (diff)
downloadmariadb-git-ac49ce88e69aa622eace909a6be85b722e7f41ee.tar.gz
added 'explicit' keyword to Bitmap constructor
sql/ha_isammrg.cc: no Bitmap::operator=(ulonglong) present
Diffstat (limited to 'sql/sql_bitmap.h')
-rw-r--r--sql/sql_bitmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_bitmap.h b/sql/sql_bitmap.h
index e5e50c180bf..0274cd700da 100644
--- a/sql/sql_bitmap.h
+++ b/sql/sql_bitmap.h
@@ -29,7 +29,7 @@ template <uint default_width> class Bitmap
public:
Bitmap() { init(); }
Bitmap(Bitmap& from) { *this=from; }
- Bitmap(uint prefix_to_set) { init(prefix_to_set); }
+ explicit 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); }
uint length() const { return default_width; }
@@ -91,7 +91,7 @@ template <> class Bitmap<64>
ulonglong map;
public:
Bitmap<64>() { }
- Bitmap<64>(uint prefix_to_set) { set_prefix(prefix_to_set); }
+ explicit Bitmap<64>(uint prefix_to_set) { set_prefix(prefix_to_set); }
void init() { }
void init(uint prefix_to_set) { set_prefix(prefix_to_set); }
uint length() const { return 64; }