Skip to content

Commit

Permalink
Fix stonesense, MSVC fail
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Feb 21, 2012
1 parent 2cd2ee9 commit 34c9c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions library/Core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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++)
Expand Down
2 changes: 1 addition & 1 deletion plugins/stonesense
Submodule stonesense updated from 37aaac to d6cb83

0 comments on commit 34c9c2d

Please sign in to comment.