From: Sam Moore Date: Mon, 7 Jul 2014 03:48:36 +0000 (+0800) Subject: C++11 lambdas - are they really worth it? X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=commitdiff_plain;h=a2fab335f6502b3a0a37055486620615e643ad35;ds=sidebyside C++11 lambdas - are they really worth it? --- diff --git a/src/main.h b/src/main.h index 9900cd5..98bf9e2 100644 --- a/src/main.h +++ b/src/main.h @@ -28,7 +28,7 @@ inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const Screen scr; View view(doc,scr, bounds, c); scr.DebugFontInit("DejaVuSansMono.ttf"); - scr.SetMouseHandler([&](int x, int y, int buttons, int wheel) // [?] wtf + scr.SetMouseHandler([&](int x, int y, int buttons, int wheel) // [?] seriously WTF { static bool oldButtonDown = false; static int oldx, oldy;