Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
c083daa0
Commit
c083daa0
authored
Nov 19, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harmonize line_builder::operator<< implementations
parent
1e2368c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
libcaf_core/src/logger.cpp
libcaf_core/src/logger.cpp
+5
-13
No files found.
libcaf_core/src/logger.cpp
View file @
c083daa0
...
...
@@ -236,17 +236,11 @@ logger::line_builder::line_builder() {
logger
::
line_builder
&
logger
::
line_builder
::
operator
<<
(
const
local_actor
*
self
)
{
if
(
!
str_
.
empty
()
&&
str_
.
back
()
!=
' '
)
str_
+=
" "
;
str_
+=
self
->
name
();
return
*
this
;
return
*
this
<<
self
->
name
();
}
logger
::
line_builder
&
logger
::
line_builder
::
operator
<<
(
const
std
::
string
&
str
)
{
if
(
!
str_
.
empty
()
&&
str_
.
back
()
!=
' '
)
str_
+=
" "
;
str_
+=
str
;
return
*
this
;
return
*
this
<<
str
.
c_str
();
}
logger
::
line_builder
&
logger
::
line_builder
::
operator
<<
(
string_view
str
)
{
...
...
@@ -257,17 +251,15 @@ logger::line_builder& logger::line_builder::operator<<(string_view str) {
}
logger
::
line_builder
&
logger
::
line_builder
::
operator
<<
(
const
char
*
str
)
{
if
(
!
str_
.
empty
())
if
(
!
str_
.
empty
()
&&
str_
.
back
()
!=
' '
)
str_
+=
" "
;
str_
+=
str
;
return
*
this
;
}
logger
::
line_builder
&
logger
::
line_builder
::
operator
<<
(
char
x
)
{
if
(
!
str_
.
empty
())
str_
+=
" "
;
str_
+=
x
;
return
*
this
;
const
char
buf
[]
=
{
x
,
'\0'
};
return
*
this
<<
buf
;
}
std
::
string
logger
::
line_builder
::
get
()
const
{
...
...
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