Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ea197c22
Commit
ea197c22
authored
8 months ago
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: const in List::push_front()
parent
7a3473f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_list.h
sql/sql_list.h
+4
-4
No files found.
sql/sql_list.h
View file @
ea197c22
...
...
@@ -212,9 +212,9 @@ class base_list :public Sql_alloc
}
return
1
;
}
inline
bool
push_front
(
void
*
info
)
inline
bool
push_front
(
const
void
*
info
)
{
return
push_front_impl
(
new
list_node
(
info
,
first
));
}
inline
bool
push_front
(
void
*
info
,
MEM_ROOT
*
mem_root
)
inline
bool
push_front
(
const
void
*
info
,
MEM_ROOT
*
mem_root
)
{
return
push_front_impl
(
new
(
mem_root
)
list_node
(
info
,
first
));
}
void
remove
(
list_node
**
prev
)
{
...
...
@@ -503,8 +503,8 @@ template <class T> class List :public base_list
inline
bool
push_back
(
T
*
a
)
{
return
base_list
::
push_back
(
a
);
}
inline
bool
push_back
(
T
*
a
,
MEM_ROOT
*
mem_root
)
{
return
base_list
::
push_back
((
void
*
)
a
,
mem_root
);
}
inline
bool
push_front
(
T
*
a
)
{
return
base_list
::
push_front
(
a
);
}
inline
bool
push_front
(
T
*
a
,
MEM_ROOT
*
mem_root
)
inline
bool
push_front
(
const
T
*
a
)
{
return
base_list
::
push_front
(
a
);
}
inline
bool
push_front
(
const
T
*
a
,
MEM_ROOT
*
mem_root
)
{
return
base_list
::
push_front
((
void
*
)
a
,
mem_root
);
}
inline
T
*
head
()
{
return
(
T
*
)
base_list
::
head
();
}
inline
T
**
head_ref
()
{
return
(
T
**
)
base_list
::
head_ref
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment