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
9f36b670
Commit
9f36b670
authored
Jun 25, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cppcheck warnings
parent
a0477b70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
libcaf_core/src/abstract_coordinator.cpp
libcaf_core/src/abstract_coordinator.cpp
+2
-5
libcaf_core/src/actor_pool.cpp
libcaf_core/src/actor_pool.cpp
+2
-2
No files found.
libcaf_core/src/abstract_coordinator.cpp
View file @
9f36b670
...
@@ -180,7 +180,7 @@ public:
...
@@ -180,7 +180,7 @@ public:
clear
();
clear
();
}
}
explicit
operator
bool
()
{
explicit
operator
bool
()
const
{
return
cache_
!=
nullptr
;
return
cache_
!=
nullptr
;
}
}
...
@@ -235,9 +235,6 @@ void printer_loop(blocking_actor* self) {
...
@@ -235,9 +235,6 @@ void printer_loop(blocking_actor* self) {
struct
actor_data
{
struct
actor_data
{
std
::
string
current_line
;
std
::
string
current_line
;
sink_handle
redirect
;
sink_handle
redirect
;
actor_data
(
std
::
string
&&
line
)
:
current_line
(
std
::
move
(
line
))
{
// nop
}
};
};
using
data_map
=
std
::
map
<
actor_addr
,
actor_data
>
;
using
data_map
=
std
::
map
<
actor_addr
,
actor_data
>
;
sink_cache
fcache
;
sink_cache
fcache
;
...
@@ -249,7 +246,7 @@ void printer_loop(blocking_actor* self) {
...
@@ -249,7 +246,7 @@ void printer_loop(blocking_actor* self) {
return
none
;
return
none
;
auto
i
=
data
.
find
(
addr
);
auto
i
=
data
.
find
(
addr
);
if
(
i
==
data
.
end
()
&&
insert_missing
)
{
if
(
i
==
data
.
end
()
&&
insert_missing
)
{
i
=
data
.
emplace
(
addr
,
std
::
string
{}).
first
;
i
=
data
.
emplace
(
addr
,
actor_data
{}).
first
;
self
->
monitor
(
addr
);
self
->
monitor
(
addr
);
}
}
if
(
i
!=
data
.
end
())
if
(
i
!=
data
.
end
())
...
...
libcaf_core/src/actor_pool.cpp
View file @
9f36b670
...
@@ -69,10 +69,10 @@ actor_pool::policy actor_pool::broadcast() {
...
@@ -69,10 +69,10 @@ actor_pool::policy actor_pool::broadcast() {
actor_pool
::
policy
actor_pool
::
random
()
{
actor_pool
::
policy
actor_pool
::
random
()
{
struct
impl
{
struct
impl
{
impl
()
{
impl
()
:
rd_
()
{
// nop
// nop
}
}
impl
(
const
impl
&
)
{
impl
(
const
impl
&
)
:
rd_
()
{
// nop
// nop
}
}
void
operator
()(
uplock
&
guard
,
const
actor_vec
&
vec
,
void
operator
()(
uplock
&
guard
,
const
actor_vec
&
vec
,
...
...
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