Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
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
spdlog
Commits
dccb7660
Commit
dccb7660
authored
Sep 27, 2020
by
Gabi Melman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning about enum usage
parent
c97983a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
include/spdlog/pattern_formatter-inl.h
include/spdlog/pattern_formatter-inl.h
+5
-5
include/spdlog/pattern_formatter.h
include/spdlog/pattern_formatter.h
+2
-2
No files found.
include/spdlog/pattern_formatter-inl.h
View file @
dccb7660
...
...
@@ -45,12 +45,12 @@ public:
return
;
}
if
(
padinfo_
.
side_
==
padding_info
::
left
)
if
(
padinfo_
.
side_
==
padding_info
::
pad_side
::
left
)
{
pad_it
(
remaining_pad_
);
remaining_pad_
=
0
;
}
else
if
(
padinfo_
.
side_
==
padding_info
::
center
)
else
if
(
padinfo_
.
side_
==
padding_info
::
pad_side
::
center
)
{
auto
half_pad
=
remaining_pad_
/
2
;
auto
reminder
=
remaining_pad_
&
1
;
...
...
@@ -1285,15 +1285,15 @@ SPDLOG_INLINE details::padding_info pattern_formatter::handle_padspec_(std::stri
switch
(
*
it
)
{
case
'-'
:
side
=
padding_info
::
right
;
side
=
padding_info
::
pad_side
::
right
;
++
it
;
break
;
case
'='
:
side
=
padding_info
::
center
;
side
=
padding_info
::
pad_side
::
center
;
++
it
;
break
;
default:
side
=
details
::
padding_info
::
left
;
side
=
details
::
padding_info
::
pad_side
::
left
;
break
;
}
...
...
include/spdlog/pattern_formatter.h
View file @
dccb7660
...
...
@@ -22,7 +22,7 @@ namespace details {
// padding information.
struct
padding_info
{
enum
pad_side
enum
class
pad_side
{
left
,
right
,
...
...
@@ -42,7 +42,7 @@ struct padding_info
return
enabled_
;
}
size_t
width_
=
0
;
pad_side
side_
=
left
;
pad_side
side_
=
pad_side
::
left
;
bool
truncate_
=
false
;
bool
enabled_
=
false
;
};
...
...
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