X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached-1.0%2Fmemcached.hpp;h=af12f30010608f0699255166199b7e36824a4140;hb=398f48445cacf12679248142f0c86d3a0d6caab6;hp=9e3051c4d003cc62271f7bc4ad4a6f29df880da8;hpb=fc51e5255fe2e55848823d838c1326dd8d27ccad;p=awesomized%2Flibmemcached diff --git a/libmemcached-1.0/memcached.hpp b/libmemcached-1.0/memcached.hpp index 9e3051c4..af12f300 100644 --- a/libmemcached-1.0/memcached.hpp +++ b/libmemcached-1.0/memcached.hpp @@ -485,13 +485,11 @@ public: time_t expiration, uint32_t flags) { - bool retval= true; std::map >::const_iterator it= key_value_map.begin(); while (it != key_value_map.end()) { - retval= set(it->first, it->second, expiration, flags); - if (retval == false) + if (!set(it->first, it->second, expiration, flags)) { // We should tell the user what the key that failed was return false;