Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
a1eba9e6
Commit
a1eba9e6
authored
Jun 29, 2017
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Убираю лишние std::move(), в надежде на RVO
parent
42b6d296
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
MessageType.h
include/MessageType.h
+1
-1
LogSession.cc
src/Log/LogSession.cc
+1
-1
No files found.
include/MessageType.h
View file @
a1eba9e6
...
@@ -77,7 +77,7 @@ namespace uniset
...
@@ -77,7 +77,7 @@ namespace uniset
assert
(
sizeof
(
uniset
::
RawDataOfTransportMessage
)
>=
sizeof
(
msg
));
assert
(
sizeof
(
uniset
::
RawDataOfTransportMessage
)
>=
sizeof
(
msg
));
std
::
memcpy
(
&
tmsg
.
data
,
&
msg
,
sizeof
(
msg
));
std
::
memcpy
(
&
tmsg
.
data
,
&
msg
,
sizeof
(
msg
));
tmsg
.
consumer
=
msg
.
consumer
;
tmsg
.
consumer
=
msg
.
consumer
;
return
std
::
move
(
tmsg
)
;
return
tmsg
;
}
}
};
};
...
...
src/Log/LogSession.cc
View file @
a1eba9e6
...
@@ -670,7 +670,7 @@ namespace uniset
...
@@ -670,7 +670,7 @@ namespace uniset
<<
" numLostMsg="
<<
numLostMsg
<<
" numLostMsg="
<<
numLostMsg
<<
endl
;
<<
endl
;
return
std
::
move
(
inf
.
str
()
);
return
inf
.
str
(
);
}
}
// ---------------------------------------------------------------------
// ---------------------------------------------------------------------
#ifndef DISABLE_REST_API
#ifndef DISABLE_REST_API
...
...
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