Commit 30ba1037 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5206 adding some consts


git-svn-id: file:///svn/toku/tokudb@45943 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4c2a309b
......@@ -45,7 +45,7 @@ struct omt {
/**
*
*/
void create_from_sorted_array(const omtdata_t *values, const uint32_t numvalues)
void create_from_sorted_array(const omtdata_t *const values, const uint32_t numvalues)
{
this->create_internal(numvalues);
memcpy(this->d.a.values, values, numvalues * (sizeof values[0]));
......@@ -196,7 +196,7 @@ struct omt {
*/
template<typename omtcmp_t,
int (*h)(const omtdata_t &, const omtcmp_t &)>
int insert(const omtdata_t &value, const omtcmp_t &v, uint32_t *idx)
int insert(const omtdata_t &value, const omtcmp_t &v, uint32_t *const idx)
{
int r;
uint32_t insert_idx;
......@@ -327,7 +327,7 @@ struct omt {
/**
*
*/
int fetch(const uint32_t idx, omtdataout_t *value) const
int fetch(const uint32_t idx, omtdataout_t *const value) const
{
if (idx >= this->size()) { return EINVAL; }
if (this->is_array) {
......@@ -343,7 +343,7 @@ struct omt {
*/
template<typename omtcmp_t,
int (*h)(const omtdata_t &, const omtcmp_t &)>
int find_zero(const omtcmp_t &extra, omtdataout_t *value, uint32_t *const idxp) const
int find_zero(const omtcmp_t &extra, omtdataout_t *const value, uint32_t *const idxp) const
{
uint32_t tmp_index;
uint32_t *const child_idxp = (idxp != nullptr) ? idxp : &tmp_index;
......
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