1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-19863 Add const to TYPELIB pointers

This commit is contained in:
Alexander Barkov
2019-06-26 05:29:44 +04:00
parent 8d4c159b1b
commit 677133f1b3
15 changed files with 58 additions and 53 deletions

View File

@ -6832,7 +6832,7 @@ class Type_holder: public Sql_alloc,
public Type_all_attributes,
public Type_geometry_attributes
{
TYPELIB *m_typelib;
const TYPELIB *m_typelib;
bool m_maybe_null;
public:
Type_holder()
@ -6863,11 +6863,11 @@ public:
{
return Type_geometry_attributes::get_geometry_type();
}
void set_typelib(TYPELIB *typelib)
void set_typelib(const TYPELIB *typelib)
{
m_typelib= typelib;
}
TYPELIB *get_typelib() const
const TYPELIB *get_typelib() const
{
return m_typelib;
}