From 219f4c9c19319848868bb152b4e336946dbee052 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 12 Jan 2014 21:25:21 +0000 Subject: [PATCH] minor code cleanup --- src/main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index 3eab89f5..4a8421dc 100644 --- a/src/main.cc +++ b/src/main.cc @@ -57,8 +57,10 @@ String runtime_directory() void register_env_vars() { - struct EnvVarDesc { const char* name; String (*func)(const String&, const Context&); }; - static const EnvVarDesc env_vars[] = { { + static const struct { + const char* name; + String (*func)(const String&, const Context&); + } env_vars[] = { { "bufname", [](const String& name, const Context& context) { return context.buffer().display_name(); }