Changeset 96c1461 in nscp for service/plugin_list.hpp
- Timestamp:
- 11/27/11 22:04:35 (18 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 9853bc3
- Parents:
- 16198e3
- File:
-
- 1 edited
-
service/plugin_list.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
service/plugin_list.hpp
ra44cb15 r96c1461 101 101 std::wstring to_wstring() { 102 102 std::wstring ret; 103 BOOST_FOREACH(std::wstring str, list()) { 103 std::list<std::wstring> lst = list(); 104 BOOST_FOREACH(std::wstring str, lst) { 104 105 if (!ret.empty()) ret += _T(", "); 105 106 ret += str; … … 109 110 std::string to_string() { 110 111 std::string ret; 111 BOOST_FOREACH(std::wstring str, list()) { 112 std::list<std::wstring> lst = list(); 113 BOOST_FOREACH(std::wstring str, lst) { 112 114 if (!ret.empty()) ret += ", "; 113 115 ret += utf8::cvt<std::string>(str); 114 116 } 115 return ret+ parent::to_string();117 return "plugins: {" + ret + "}, " + parent::to_string(); 116 118 } 117 119 … … 189 191 std::wstring lc = make_key(channel); 190 192 if (!have_plugin(plugin_id)) { 191 writeLock. release();193 writeLock.unlock(); 192 194 throw plugins_list_exception("Failed to find plugin: " + ::to_string(plugin_id) + ", Plugins: " + to_string()); 193 195 }
Note: See TracChangeset
for help on using the changeset viewer.








