Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
Libraries
fmt
Commits
42a225cb
Commit
42a225cb
authored
Sep 03, 2021
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundand final
parent
bf20d199
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/fmt/core.h
include/fmt/core.h
+4
-4
include/fmt/format.h
include/fmt/format.h
+1
-1
No files found.
include/fmt/core.h
View file @
42a225cb
...
@@ -861,7 +861,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
...
@@ -861,7 +861,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
T
data_
[
buffer_size
];
T
data_
[
buffer_size
];
protected:
protected:
void
grow
(
size_t
)
final
FMT_OVERRIDE
{
void
grow
(
size_t
)
FMT_OVERRIDE
{
if
(
this
->
size
()
==
buffer_size
)
flush
();
if
(
this
->
size
()
==
buffer_size
)
flush
();
}
}
...
@@ -887,7 +887,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
...
@@ -887,7 +887,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
template
<
typename
T
>
class
iterator_buffer
<
T
*
,
T
>
final
:
public
buffer
<
T
>
{
template
<
typename
T
>
class
iterator_buffer
<
T
*
,
T
>
final
:
public
buffer
<
T
>
{
protected:
protected:
void
grow
(
size_t
)
final
FMT_OVERRIDE
{}
void
grow
(
size_t
)
FMT_OVERRIDE
{}
public:
public:
explicit
iterator_buffer
(
T
*
out
,
size_t
=
0
)
:
buffer
<
T
>
(
out
,
0
,
~
size_t
())
{}
explicit
iterator_buffer
(
T
*
out
,
size_t
=
0
)
:
buffer
<
T
>
(
out
,
0
,
~
size_t
())
{}
...
@@ -905,7 +905,7 @@ class iterator_buffer<std::back_insert_iterator<Container>,
...
@@ -905,7 +905,7 @@ class iterator_buffer<std::back_insert_iterator<Container>,
Container
&
container_
;
Container
&
container_
;
protected:
protected:
void
grow
(
size_t
capacity
)
final
FMT_OVERRIDE
{
void
grow
(
size_t
capacity
)
FMT_OVERRIDE
{
container_
.
resize
(
capacity
);
container_
.
resize
(
capacity
);
this
->
set
(
&
container_
[
0
],
capacity
);
this
->
set
(
&
container_
[
0
],
capacity
);
}
}
...
@@ -928,7 +928,7 @@ template <typename T = char> class counting_buffer final : public buffer<T> {
...
@@ -928,7 +928,7 @@ template <typename T = char> class counting_buffer final : public buffer<T> {
size_t
count_
=
0
;
size_t
count_
=
0
;
protected:
protected:
void
grow
(
size_t
)
final
FMT_OVERRIDE
{
void
grow
(
size_t
)
FMT_OVERRIDE
{
if
(
this
->
size
()
!=
buffer_size
)
return
;
if
(
this
->
size
()
!=
buffer_size
)
return
;
count_
+=
this
->
size
();
count_
+=
this
->
size
();
this
->
clear
();
this
->
clear
();
...
...
include/fmt/format.h
View file @
42a225cb
...
@@ -657,7 +657,7 @@ class basic_memory_buffer final : public detail::buffer<T> {
...
@@ -657,7 +657,7 @@ class basic_memory_buffer final : public detail::buffer<T> {
}
}
protected:
protected:
void
grow
(
size_t
size
)
final
FMT_OVERRIDE
;
void
grow
(
size_t
size
)
FMT_OVERRIDE
;
public:
public:
using
value_type
=
T
;
using
value_type
=
T
;
...
...
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