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
e35414a0
Commit
e35414a0
authored
Oct 30, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed redundant casts to string_view
parent
0d0706a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/spdlog/details/logger_impl.h
include/spdlog/details/logger_impl.h
+1
-1
include/spdlog/details/pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+1
-1
No files found.
include/spdlog/details/logger_impl.h
View file @
e35414a0
...
@@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
...
@@ -96,7 +96,7 @@ inline void spdlog::logger::log(level::level_enum lvl, const T &msg)
}
}
try
try
{
{
details
::
log_msg
log_msg
(
&
name_
,
lvl
,
static_cast
<
spdlog
::
string_view_t
>
(
msg
)
);
details
::
log_msg
log_msg
(
&
name_
,
lvl
,
msg
);
sink_it_
(
log_msg
);
sink_it_
(
log_msg
);
}
}
SPDLOG_CATCH_AND_HANDLE
SPDLOG_CATCH_AND_HANDLE
...
...
include/spdlog/details/pattern_formatter.h
View file @
e35414a0
...
@@ -38,7 +38,7 @@ class name_formatter : public flag_formatter
...
@@ -38,7 +38,7 @@ class name_formatter : public flag_formatter
{
{
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
void
format
(
const
details
::
log_msg
&
msg
,
const
std
::
tm
&
,
fmt
::
memory_buffer
&
dest
)
override
{
{
fmt_helper
::
append_string_view
(
string_view_t
(
*
msg
.
logger_name
)
,
dest
);
fmt_helper
::
append_string_view
(
*
msg
.
logger_name
,
dest
);
}
}
};
};
...
...
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