Browse Source

2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Code cleanup
	* src/XmlRpcMethod.cc
Tatsuhiro Tsujikawa 16 years ago
parent
commit
6c6e7f2c51
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      src/XmlRpcMethod.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Code cleanup
+	* src/XmlRpcMethod.cc
+
 2009-12-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Documented about followedBy and belongsTo in man page.

+ 1 - 1
src/XmlRpcMethod.cc

@@ -84,7 +84,7 @@ static void gatherOption
 {
   for(; first != last; ++first) {
     const std::string& optionName = (*first).first;
-    if(changeableOptions.find(optionName) == changeableOptions.end()) {
+    if(changeableOptions.count(optionName) == 0) {
       throw DL_ABORT_EX
 	(StringFormat
 	 ("%s cannot be changed or unknown option.", optionName.c_str()).str());