.bazaar fix Unique to compile.

git-svn-id: svn://ultimatepp.org/upp/trunk@11026 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
klugier 2017-04-22 23:02:50 +00:00
parent e79530678e
commit 1f7d92bd07
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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();

View file

@ -106,7 +106,7 @@ bool Uniq::SendCmdLine(void)
// disconnects from client
DisconnectNamedPipe(pipe);
PostCallback(callback1(WhenInstance, v));
PostCallback([=, &v]() { WhenInstance(v); } );
return true;
}