summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-03-21 23:41:28 +0200
committermonty@mysql.com <>2005-03-21 23:41:28 +0200
commita1ab786091b3af1620af03313b0c7a467813a5d2 (patch)
tree0dc25c2b0b090f45da0eec51acfbcb6d42180cd6 /sql/sql_string.h
parentdf12e29955a0421f131e2239ef042eb1add225c6 (diff)
downloadmariadb-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.h5
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)
{