* More cleanup of commands, including some optimization by avoiding

some heap allocations.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@893 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-04-18 15:15:06 +00:00
parent d0ae367dca
commit 7077aba019
9 changed files with 216 additions and 74 deletions
+1 -4
View File
@@ -44,10 +44,10 @@
#include "core/view_manager.h"
#include "utils/command_slot.h"
#include "utils/parse.h"
#include "utils/variable_map.h"
#include "globals.h"
#include "control.h"
#include "command_helpers.h"
typedef void (core::ViewManager::*view_filter_slot)(const std::string&, const core::ViewManager::sort_args&);
@@ -91,9 +91,6 @@ apply_view_sort(const torrent::Object& rawArgs) {
control->view_manager()->sort(name, value);
}
#define ADD_COMMAND_SLOT(key, function, slot) \
variables->insert(key, new utils::CommandSlot(slot), &utils::CommandSlot::function);
void
initialize_command_ui() {
utils::VariableMap* variables = control->variable();