]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused variable "ostr" in rgw_b64.h and fix the comment 11329/head
authorWeibing Zhang <atheism.zhang@gmail.com>
Wed, 5 Oct 2016 14:34:33 +0000 (22:34 +0800)
committerWeibing Zhang <atheism.zhang@gmail.com>
Wed, 5 Oct 2016 14:34:33 +0000 (22:34 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/rgw/rgw_b64.h

index 8a9e8adafe7a21c2aa3750fe04bd5b7e65caee3b..36c984e815a8e8a4a5c52ee1966d216ae95f2948 100644 (file)
@@ -28,8 +28,7 @@ namespace rgw {
   inline std::string to_base64(boost::string_ref sref)
   {
     using namespace boost::archive::iterators;
-    std::string ostr;
-    
+
     // output must be =padded modulo 3
     auto psize = sref.size();
     while ((psize % 3) != 0) {
@@ -52,7 +51,7 @@ namespace rgw {
     std::string outstr(b64_iter(sref.data()),
                       b64_iter(sref.data() + sref.size()));
 
-    // pad ostr with '=' to a length that is a multiple of 3
+    // pad outstr with '=' to a length that is a multiple of 3
     for (size_t ix = 0; ix < (psize-sref.size()); ++ix)
       outstr.push_back('=');