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
3385553b
Commit
3385553b
authored
Mar 03, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around false "unreachable code" warning
parent
dbe880af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
libcaf_core/caf/mixin/actor_widget.hpp
libcaf_core/caf/mixin/actor_widget.hpp
+1
-1
libcaf_core/src/abstract_actor.cpp
libcaf_core/src/abstract_actor.cpp
+2
-3
No files found.
libcaf_core/caf/mixin/actor_widget.hpp
View file @
3385553b
...
@@ -66,7 +66,7 @@ class actor_widget : public Base {
...
@@ -66,7 +66,7 @@ class actor_widget : public Base {
m_companion
->
become
(
pfun
(
m_companion
.
get
()));
m_companion
->
become
(
pfun
(
m_companion
.
get
()));
}
}
virtual
bool
event
(
QEvent
*
event
)
{
bool
event
(
QEvent
*
event
)
override
{
if
(
event
->
type
()
==
static_cast
<
QEvent
::
Type
>
(
EventId
))
{
if
(
event
->
type
()
==
static_cast
<
QEvent
::
Type
>
(
EventId
))
{
auto
ptr
=
dynamic_cast
<
event_type
*>
(
event
);
auto
ptr
=
dynamic_cast
<
event_type
*>
(
event
);
if
(
ptr
)
{
if
(
ptr
)
{
...
...
libcaf_core/src/abstract_actor.cpp
View file @
3385553b
...
@@ -131,10 +131,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) {
...
@@ -131,10 +131,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) {
return
establish_backlink_impl
(
other
);
return
establish_backlink_impl
(
other
);
case
remove_link_op
:
case
remove_link_op
:
return
remove_link_impl
(
other
);
return
remove_link_impl
(
other
);
case
remove_backlink_op
:
return
remove_backlink_impl
(
other
);
default:
default:
return
false
;
CAF_REQUIRE
(
op
==
remove_backlink_op
);
return
remove_backlink_impl
(
other
);
}
}
}
}
...
...
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