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
6ae25bc3
Commit
6ae25bc3
authored
Dec 26, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix "unreachable code" warning
parent
5d923b9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
libcaf_core/src/abstract_actor.cpp
libcaf_core/src/abstract_actor.cpp
+2
-1
libcaf_core/src/forwarding_actor_proxy.cpp
libcaf_core/src/forwarding_actor_proxy.cpp
+4
-4
No files found.
libcaf_core/src/abstract_actor.cpp
View file @
6ae25bc3
...
...
@@ -121,8 +121,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) {
return
remove_link_impl
(
other
);
case
remove_backlink_op
:
return
remove_backlink_impl
(
other
);
default:
return
false
;
}
return
false
;
}
bool
abstract_actor
::
establish_link_impl
(
const
actor_addr
&
other
)
{
...
...
libcaf_core/src/forwarding_actor_proxy.cpp
View file @
6ae25bc3
...
...
@@ -83,7 +83,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message
(
atom
(
"_Link"
),
other
));
return
true
;
}
return
false
;
break
;
case
remove_link_op
:
if
(
remove_link_impl
(
other
))
{
// causes remote actor to unlink from (proxy of) other
...
...
@@ -91,7 +91,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message
(
atom
(
"_Unlink"
),
other
));
return
true
;
}
return
false
;
break
;
case
establish_backlink_op
:
if
(
establish_backlink_impl
(
other
))
{
// causes remote actor to unlink from (proxy of) other
...
...
@@ -99,7 +99,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message
(
atom
(
"_Link"
),
other
));
return
true
;
}
return
false
;
break
;
case
remove_backlink_op
:
if
(
remove_backlink_impl
(
other
))
{
// causes remote actor to unlink from (proxy of) other
...
...
@@ -107,7 +107,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message
(
atom
(
"_Unlink"
),
other
));
return
true
;
}
return
false
;
break
;
}
return
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