Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Peter Stroia-Williams
CMake
Commits
d6fbd438
Commit
d6fbd438
authored
Jan 29, 2019
by
Artur Ryt
Browse files
Autogen: Refactor std::bind calls to lambdas
parent
d75fec5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Source/cmQtAutoGeneratorMocUic.cxx
View file @
d6fbd438
...
...
@@ -1111,8 +1111,7 @@ void cmQtAutoGeneratorMocUic::WorkerT::UVProcessStart(uv_async_t* handle)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
wrk
.
ProcessMutex_
);
if
(
wrk
.
Process_
&&
!
wrk
.
Process_
->
IsStarted
())
{
wrk
.
Process_
->
start
(
handle
->
loop
,
std
::
bind
(
&
WorkerT
::
UVProcessFinished
,
&
wrk
));
wrk
.
Process_
->
start
(
handle
->
loop
,
[
&
wrk
]
{
wrk
.
UVProcessFinished
();
});
}
}
}
...
...
Source/cmQtAutoGeneratorRcc.cxx
View file @
d6fbd438
...
...
@@ -10,8 +10,6 @@
#include "cmSystemTools.h"
#include "cmUVHandlePtr.h"
#include <functional>
// -- Class methods
cmQtAutoGeneratorRcc
::
cmQtAutoGeneratorRcc
()
...
...
@@ -662,8 +660,7 @@ bool cmQtAutoGeneratorRcc::StartProcess(
Process_
=
cm
::
make_unique
<
ReadOnlyProcessT
>
();
Process_
->
setup
(
&
ProcessResult_
,
mergedOutput
,
command
,
workingDirectory
);
// Start process
if
(
!
Process_
->
start
(
UVLoop
(),
std
::
bind
(
&
cm
::
uv_async_ptr
::
send
,
&
UVRequest
())))
{
if
(
!
Process_
->
start
(
UVLoop
(),
[
this
]
{
UVRequest
().
send
();
}))
{
Log
().
ErrorFile
(
GeneratorT
::
RCC
,
QrcFile_
,
ProcessResult_
.
ErrorMessage
);
Error_
=
true
;
// Clean up
...
...
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