mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.bazaar fix Unique to compile.
git-svn-id: svn://ultimatepp.org/upp/trunk@11026 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e79530678e
commit
1f7d92bd07
3 changed files with 3 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ bool Uniq::SendCmdLine(int pipe)
|
|||
}
|
||||
fclose(f);
|
||||
// posts the callback to handle new instance's command line
|
||||
PostCallback(callback1(WhenInstance, v));
|
||||
PostCallback([=, &v]() { WhenInstance(v); } );
|
||||
return true;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class Uniq
|
|||
typedef Uniq CLASSNAME;
|
||||
|
||||
// callback called when another app instance is run
|
||||
Callback1<Vector<String> const &> WhenInstance;
|
||||
Event<const Vector<String>&> WhenInstance;
|
||||
|
||||
Uniq();
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ bool Uniq::SendCmdLine(void)
|
|||
// disconnects from client
|
||||
DisconnectNamedPipe(pipe);
|
||||
|
||||
PostCallback(callback1(WhenInstance, v));
|
||||
PostCallback([=, &v]() { WhenInstance(v); } );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue