mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
* Cleanup of old command code.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1156 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
namespace rpc {
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::set_bool(Command* rawCommand, cleaned_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable::set_bool(Command* rawCommand, target_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
const torrent::Object& arg = convert_to_single_argument(rawArgs);
|
||||
@@ -73,14 +73,14 @@ CommandVariable::set_bool(Command* rawCommand, cleaned_type target, const torren
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::get_bool(Command* rawCommand, cleaned_type target, const torrent::Object& args) {
|
||||
CommandVariable::get_bool(Command* rawCommand, target_type target, const torrent::Object& args) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
return variable->m_variable;
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::set_value(Command* rawCommand, cleaned_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable::set_value(Command* rawCommand, target_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
const torrent::Object& arg = convert_to_single_argument(rawArgs);
|
||||
@@ -109,14 +109,14 @@ CommandVariable::set_value(Command* rawCommand, cleaned_type target, const torre
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::get_value(Command* rawCommand, cleaned_type target, const torrent::Object& args) {
|
||||
CommandVariable::get_value(Command* rawCommand, target_type target, const torrent::Object& args) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
return variable->m_variable;
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::set_string(Command* rawCommand, cleaned_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable::set_string(Command* rawCommand, target_type target, const torrent::Object& rawArgs) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
const torrent::Object& arg = convert_to_single_argument(rawArgs);
|
||||
@@ -142,7 +142,7 @@ CommandVariable::set_string(Command* rawCommand, cleaned_type target, const torr
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandVariable::get_string(Command* rawCommand, cleaned_type target, const torrent::Object& args) {
|
||||
CommandVariable::get_string(Command* rawCommand, target_type target, const torrent::Object& args) {
|
||||
CommandVariable* variable = static_cast<CommandVariable*>(rawCommand);
|
||||
|
||||
return variable->m_variable;
|
||||
@@ -153,14 +153,14 @@ CommandVariable::get_string(Command* rawCommand, cleaned_type target, const torr
|
||||
//
|
||||
|
||||
const torrent::Object
|
||||
CommandObjectPtr::set_generic(Command* rawCommand, cleaned_type target, const torrent::Object& rawArgs) {
|
||||
CommandObjectPtr::set_generic(Command* rawCommand, target_type target, const torrent::Object& rawArgs) {
|
||||
CommandObjectPtr* command = static_cast<CommandObjectPtr*>(rawCommand);
|
||||
|
||||
return (*command->m_object = rawArgs);
|
||||
}
|
||||
|
||||
const torrent::Object
|
||||
CommandObjectPtr::get_generic(Command* rawCommand, cleaned_type target, const torrent::Object& args) {
|
||||
CommandObjectPtr::get_generic(Command* rawCommand, target_type target, const torrent::Object& args) {
|
||||
CommandObjectPtr* command = static_cast<CommandObjectPtr*>(rawCommand);
|
||||
|
||||
return *command->m_object;
|
||||
|
||||
Reference in New Issue
Block a user