From 4c29d3b71447a90ae30eafc56cb1f4a0bc35de3f Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Mon, 26 Dec 2011 14:32:45 +0900 Subject: [PATCH] Removed extra semicolon. --- src/command_download.cc | 4 ++-- src/display/text_element_value.cc | 2 +- src/rpc/fixed_key.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command_download.cc b/src/command_download.cc index 91c35443..558d60af 100644 --- a/src/command_download.cc +++ b/src/command_download.cc @@ -849,8 +849,8 @@ initialize_command_download() { // std::bind(&core::Download::main, std::placeholders::_1)), // CG_GROUP_INDEX())); - CMD2_DL ("d.group", std::bind(&cg_d_group, std::placeholders::_1));; - CMD2_DL ("d.group.name", std::bind(&cg_d_group, std::placeholders::_1));; + CMD2_DL ("d.group", std::bind(&cg_d_group, std::placeholders::_1)); + CMD2_DL ("d.group.name", std::bind(&cg_d_group, std::placeholders::_1)); CMD2_DL_V ("d.group.set", std::bind(&cg_d_group_set, std::placeholders::_1, std::placeholders::_2)); CMD2_DL ("d.initialize_logs", std::bind(&cmd_d_initialize_logs, std::placeholders::_1)); diff --git a/src/display/text_element_value.cc b/src/display/text_element_value.cc index fe2d4674..bee86a49 100644 --- a/src/display/text_element_value.cc +++ b/src/display/text_element_value.cc @@ -112,7 +112,7 @@ TextElementValueBase::print(char* first, char* last, Canvas::attributes_list* at if (u == NULL) return first; - first += std::min(std::max(snprintf(first, last - first + 1, "%02u/%02u/%04u", u->tm_mday, (u->tm_mon + 1), (1900 + u->tm_year)), 0), last - first + 1);; + first += std::min(std::max(snprintf(first, last - first + 1, "%02u/%02u/%04u", u->tm_mday, (u->tm_mon + 1), (1900 + u->tm_year)), 0), last - first + 1); } else if (m_flags & flag_time) { time_t t = val; diff --git a/src/rpc/fixed_key.h b/src/rpc/fixed_key.h index 91b29d5a..4261ab2c 100644 --- a/src/rpc/fixed_key.h +++ b/src/rpc/fixed_key.h @@ -63,7 +63,7 @@ public: static fixed_key_type from_string(const std::string& str) { fixed_key_type k; k.set_c_str(str.c_str(), str.size()); return k; } static fixed_key_type from_raw_string(const torrent::raw_string& str) { fixed_key_type k; k.set_data(str.data(), str.size()); return k; } - bool empty() const { return m_size == 0;; } + bool empty() const { return m_size == 0; } size_type size() const { return m_size; } iterator begin() const { return m_data; }