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
da2af6ea
Commit
da2af6ea
authored
Aug 13, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some clang-tidy warning
parent
ba337d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/spdlog/details/file_helper.h
include/spdlog/details/file_helper.h
+1
-1
include/spdlog/details/registry.h
include/spdlog/details/registry.h
+1
-1
No files found.
include/spdlog/details/file_helper.h
View file @
da2af6ea
...
@@ -136,7 +136,7 @@ public:
...
@@ -136,7 +136,7 @@ public:
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
auto
folder_index
=
fname
.
rfind
(
details
::
os
::
folder_sep
);
auto
folder_index
=
fname
.
rfind
(
details
::
os
::
folder_sep
);
if
(
folder_index
!=
f
name
.
npos
&&
folder_index
>=
ext_index
-
1
)
if
(
folder_index
!=
f
ilename_t
::
npos
&&
folder_index
>=
ext_index
-
1
)
{
{
return
std
::
make_tuple
(
fname
,
spdlog
::
filename_t
());
return
std
::
make_tuple
(
fname
,
spdlog
::
filename_t
());
}
}
...
...
include/spdlog/details/registry.h
View file @
da2af6ea
...
@@ -112,7 +112,7 @@ public:
...
@@ -112,7 +112,7 @@ public:
void
flush_every
(
std
::
chrono
::
seconds
interval
)
void
flush_every
(
std
::
chrono
::
seconds
interval
)
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
flusher_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
flusher_mutex_
);
std
::
function
<
void
()
>
clbk
(
std
::
bind
(
&
registry
::
flush_all
,
this
)
);
std
::
function
<
void
()
>
clbk
=
std
::
bind
(
&
registry
::
flush_all
,
this
);
periodic_flusher_
.
reset
(
new
periodic_worker
(
clbk
,
interval
));
periodic_flusher_
.
reset
(
new
periodic_worker
(
clbk
,
interval
));
}
}
...
...
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