mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 13:42:30 +00:00
* Changed command_base stored in CommandMap from a pointer to an instance.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1169 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -42,9 +42,6 @@
|
||||
#include "control.h"
|
||||
#include "command_helpers.h"
|
||||
|
||||
rpc::command_base commandNewSlots[COMMAND_NEW_SLOTS_SIZE];
|
||||
rpc::command_base* commandNewSlotItr = commandNewSlots;
|
||||
|
||||
void initialize_command_dynamic();
|
||||
void initialize_command_download();
|
||||
void initialize_command_events();
|
||||
@@ -68,11 +65,4 @@ initialize_commands() {
|
||||
initialize_command_peer();
|
||||
initialize_command_tracker();
|
||||
initialize_command_scheduler();
|
||||
|
||||
#ifdef ADDING_COMMANDS
|
||||
if (commandNewSlotItr > commandNewSlots + COMMAND_NEW_SLOTS_SIZE)
|
||||
#else
|
||||
if (commandNewSlotItr != commandNewSlots + COMMAND_NEW_SLOTS_SIZE)
|
||||
#endif
|
||||
throw torrent::internal_error("initialize_commands() static command array size mismatch.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user