diff --git a/src/command_local.cc b/src/command_local.cc index ccd87945..beeead5a 100644 --- a/src/command_local.cc +++ b/src/command_local.cc @@ -5,12 +5,12 @@ // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -135,7 +135,7 @@ check_name(const std::string& str) { throw torrent::input_error("Non-alphanumeric characters found."); return str; -} +} torrent::Object group_insert(const torrent::Object::list_type& args) { @@ -158,7 +158,7 @@ group_insert(const torrent::Object::list_type& args) { if (rpc::call_command_value("method.use_intermediate") == 1) { // Deprecated in 0.7.0: - + CMD2_REDIRECT_GENERIC_STR("group." + name + ".view", "group2." + name + ".view"); CMD2_REDIRECT_GENERIC_STR("group." + name + ".view.set", "group2." + name + ".view.set"); CMD2_REDIRECT_GENERIC_STR("group." + name + ".ratio.min", "group2." + name + ".ratio.min"); @@ -170,7 +170,7 @@ group_insert(const torrent::Object::list_type& args) { } if (rpc::call_command_value("method.use_intermediate") == 2) { // Deprecated in 0.7.0: - + CMD2_REDIRECT_GENERIC_STR_NO_EXPORT("group." + name + ".view", "group2." + name + ".view"); CMD2_REDIRECT_GENERIC_STR_NO_EXPORT("group." + name + ".view.set", "group2." + name + ".view.set"); CMD2_REDIRECT_GENERIC_STR_NO_EXPORT("group." + name + ".ratio.min", "group2." + name + ".ratio.min"); @@ -215,9 +215,9 @@ torrent::Object cmd_file_append(const torrent::Object::list_type& args) { if (args.empty()) throw torrent::input_error("Invalid number of arguments."); - + FILE* output = fopen(args.front().as_string().c_str(), "a"); - + if (output == NULL) throw torrent::input_error("Could not append to file '" + args.front().as_string() + "': " + rak::error_number::current().c_str()); @@ -265,7 +265,7 @@ initialize_command_local() { CMD2_ANY ("system.time_usec", std::bind(&rak::timer::current_usec)); CMD2_ANY_VALUE_V ("system.umask.set", std::bind(&umask, std::placeholders::_2)); - + CMD2_VAR_BOOL ("system.use_daemon", false); CMD2_ANY ("system.cwd", std::bind(&system_get_cwd)); diff --git a/src/control.cc b/src/control.cc index ed033102..8e28da0d 100644 --- a/src/control.cc +++ b/src/control.cc @@ -5,12 +5,12 @@ // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -138,7 +138,7 @@ Control::cleanup() { m_ui->cleanup(); m_core->cleanup(); - + display::Canvas::erase_std(); display::Canvas::refresh_std(); display::Canvas::do_update(); diff --git a/src/display/canvas.cc b/src/display/canvas.cc index ea2eb73b..02bdc193 100644 --- a/src/display/canvas.cc +++ b/src/display/canvas.cc @@ -5,12 +5,12 @@ // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -104,7 +104,7 @@ void Canvas::initialize() { if (m_isInitialized) return; - + m_isDaemon = rpc::call_command_value("system.use_daemon"); m_isInitialized = true; @@ -123,7 +123,7 @@ void Canvas::cleanup() { if (!m_isInitialized) return; - + m_isInitialized = false; if (!m_isDaemon) { diff --git a/src/display/canvas.h b/src/display/canvas.h index 50da0fd8..b324d81a 100644 --- a/src/display/canvas.h +++ b/src/display/canvas.h @@ -5,12 +5,12 @@ // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA @@ -107,7 +107,7 @@ public: static std::pair term_size(); static void do_update() { if (!m_isDaemon) { doupdate(); } } - + static bool daemon() { return m_isDaemon; } private: