Commit e53e58d4 authored by Marko Mäkelä's avatar Marko Mäkelä

Add a missing const qualifier

parent 48192f96
...@@ -803,14 +803,11 @@ big_rec_t::alloc( ...@@ -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*>(
......
/***************************************************************************** /*****************************************************************************
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{ ...@@ -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) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment