Commit a07b537b authored by Marko Mäkelä's avatar Marko Mäkelä

Field_varstring: Declare get_data() and get_length() as public

The underlying data members are declared public, so there is no
point in hiding these const accessors.
parent a449f72a
......@@ -3092,6 +3092,7 @@ class Field_string :public Field_longstr {
class Field_varstring :public Field_longstr {
public:
uchar *get_data() const
{
return ptr + length_bytes;
......@@ -3100,7 +3101,6 @@ class Field_varstring :public Field_longstr {
{
return length_bytes == 1 ? (uint) *ptr : uint2korr(ptr);
}
public:
/*
The maximum space available in a Field_varstring, in bytes. See
length_bytes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment