Add a missing const qualifier

This commit is contained in:
Marko Mäkelä 2017-09-20 14:55:14 +03:00
parent 48192f963a
commit e53e58d4e4
2 changed files with 9 additions and 12 deletions

View File

@ -803,14 +803,11 @@ big_rec_t::alloc(
return(rec); return(rec);
} }
/** Create a deep copy of this object /** Create a deep copy of this object.
@param[in] heap the memory heap in which the clone will be @param[in,out] heap memory heap in which the clone will be created
created. @return the cloned object */
@return the cloned object. */
dfield_t* dfield_t*
dfield_t::clone( dfield_t::clone(mem_heap_t* heap) const
mem_heap_t* heap)
{ {
const ulint size = len == UNIV_SQL_NULL ? 0 : len; const ulint size = len == UNIV_SQL_NULL ? 0 : len;
dfield_t* obj = static_cast<dfield_t*>( dfield_t* obj = static_cast<dfield_t*>(

View File

@ -1,6 +1,7 @@
/***************************************************************************** /*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
@ -586,11 +587,10 @@ struct dfield_t{
unsigned len; /*!< data length; UNIV_SQL_NULL if SQL null */ unsigned len; /*!< data length; UNIV_SQL_NULL if SQL null */
dtype_t type; /*!< type of data */ dtype_t type; /*!< type of data */
/** Create a deep copy of this object /** Create a deep copy of this object.
@param[in] heap the memory heap in which the clone will be @param[in,out] heap memory heap in which the clone will be created
created. @return the cloned object */
@return the cloned object. */ dfield_t* clone(mem_heap_t* heap) const;
dfield_t* clone(mem_heap_t* heap);
}; };
/** Structure for an SQL data tuple of fields (logical record) */ /** Structure for an SQL data tuple of fields (logical record) */