From 34c9c2d663198ce33a270bfa84332684d4cba22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 21 Feb 2012 18:30:31 +0100 Subject: [PATCH] Fix stonesense, MSVC fail --- library/Core.cpp | 5 +++-- plugins/stonesense | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Core.cpp b/library/Core.cpp index b0c8f7599..d075d28f5 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -369,6 +369,8 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue bool recolor; string name; string description; + //FIXME: Nuke when MSVC stops failing at being C++11 compliant + sortable(bool recolor_,const string& name_,const string & description_): recolor(recolor_), name(name_), description(description_){}; bool operator <(const sortable & rhs) const { if( name < rhs.name ) @@ -385,8 +387,7 @@ static void runInteractiveCommand(Core *core, PluginManager *plug_mgr, int &clue for (size_t j = 0; j < plug->size();j++) { const PluginCommand & pcmd = (plug->operator[](j)); - sortable so = {pcmd.isHotkeyCommand(),pcmd.name,pcmd.description}; - out.insert(so); + out.insert(sortable(pcmd.isHotkeyCommand(),pcmd.name,pcmd.description)); } } for(auto iter = out.begin();iter != out.end();iter++) diff --git a/plugins/stonesense b/plugins/stonesense index 37aaaca12..d6cb83efb 160000 --- a/plugins/stonesense +++ b/plugins/stonesense @@ -1 +1 @@ -Subproject commit 37aaaca12d719ab47faedd1570158f37ad0362c7 +Subproject commit d6cb83efb16105e2c9e46df0989354d08309dd7f