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
f4f5ed4d
Commit
f4f5ed4d
authored
Aug 28, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs found with PVS-studio, close #583
parent
c351c48d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
libcaf_core/caf/detail/stringification_inspector.hpp
libcaf_core/caf/detail/stringification_inspector.hpp
+1
-1
libcaf_core/caf/detail/type_erased_tuple_view.hpp
libcaf_core/caf/detail/type_erased_tuple_view.hpp
+3
-0
libcaf_core/src/abstract_coordinator.cpp
libcaf_core/src/abstract_coordinator.cpp
+1
-1
libcaf_core/src/error.cpp
libcaf_core/src/error.cpp
+4
-1
No files found.
libcaf_core/caf/detail/stringification_inspector.hpp
View file @
f4f5ed4d
...
...
@@ -172,7 +172,7 @@ public:
result_
+=
'*'
;
consume
(
*
ptr
);
}
else
{
result_
+
"<null>"
;
result_
+
=
"<null>"
;
}
}
...
...
libcaf_core/caf/detail/type_erased_tuple_view.hpp
View file @
f4f5ed4d
...
...
@@ -60,6 +60,9 @@ public:
init
();
}
type_erased_tuple_view
&
operator
=
(
type_erased_tuple_view
&&
)
=
delete
;
type_erased_tuple_view
&
operator
=
(
const
type_erased_tuple_view
&
)
=
delete
;
// -- overridden modifiers ---------------------------------------------------
void
*
get_mutable
(
size_t
pos
)
override
{
...
...
libcaf_core/src/abstract_coordinator.cpp
View file @
f4f5ed4d
...
...
@@ -203,7 +203,7 @@ string_sink make_sink(actor_system& sys, const std::string& fn, int flags) {
auto
grp
=
sys
.
groups
().
get_local
(
fn
);
return
[
grp
,
fn
](
std
::
string
&&
out
)
{
anon_send
(
grp
,
fn
,
std
::
move
(
out
));
};
}
auto
append
=
static_cast
<
bool
>
(
flags
&
actor_ostream
::
append
)
;
auto
append
=
(
flags
&
actor_ostream
::
append
)
!=
0
;
auto
fs
=
std
::
make_shared
<
std
::
ofstream
>
();
fs
->
open
(
fn
,
append
?
std
::
ios_base
::
out
|
std
::
ios_base
::
app
:
std
::
ios_base
::
out
);
...
...
libcaf_core/src/error.cpp
View file @
f4f5ed4d
...
...
@@ -51,7 +51,8 @@ error::error(error&& x) noexcept : data_(x.data_) {
}
error
&
error
::
operator
=
(
error
&&
x
)
noexcept
{
std
::
swap
(
data_
,
x
.
data_
);
if
(
this
!=
&
x
)
std
::
swap
(
data_
,
x
.
data_
);
return
*
this
;
}
...
...
@@ -60,6 +61,8 @@ error::error(const error& x) : data_(x ? new data(*x.data_) : nullptr) {
}
error
&
error
::
operator
=
(
const
error
&
x
)
{
if
(
this
==
&
x
)
return
*
this
;
if
(
x
)
{
if
(
data_
==
nullptr
)
data_
=
new
data
(
*
x
.
data_
);
...
...
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