diff options
author | monty@mysql.com <> | 2005-03-21 23:41:28 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-03-21 23:41:28 +0200 |
commit | a1ab786091b3af1620af03313b0c7a467813a5d2 (patch) | |
tree | 0dc25c2b0b090f45da0eec51acfbcb6d42180cd6 /sql/sql_string.h | |
parent | df12e29955a0421f131e2239ef042eb1add225c6 (diff) | |
download | mariadb-git-a1ab786091b3af1620af03313b0c7a467813a5d2.tar.gz |
Cleanups during review of code
Fixed newly introduced bug in rollup
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index fc1e9f171b6..7ece9885040 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -84,6 +84,7 @@ public: inline char& operator [] (uint32 i) const { return Ptr[i]; } inline void length(uint32 len) { str_length=len ; } inline bool is_empty() { return (str_length == 0); } + inline void mark_as_const() { Alloced_length= 0;} inline const char *ptr() const { return Ptr; } inline char *c_ptr() { @@ -205,10 +206,6 @@ public: } } } - inline void shrink_to_length() - { - Alloced_length= str_length; - } bool is_alloced() { return alloced; } inline String& operator = (const String &s) { |