mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 11:45:32 +02:00
Cleanups during review of code
Fixed newly introduced bug in rollup
This commit is contained in:
parent
df12e29955
commit
a1ab786091
9 changed files with 86 additions and 45 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue