You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by th...@apache.org on 2021/03/22 04:57:14 UTC

[avro] branch master updated: Fixed the error that caused C++ lint to fail (#1147)

This is an automated email from the ASF dual-hosted git repository.

thiru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new b4e8bd8  Fixed the error that caused C++ lint to fail (#1147)
b4e8bd8 is described below

commit b4e8bd84205c0d7f210a4c5783a934d7c9a55275
Author: Thiruvalluvan M G <th...@apache.org>
AuthorDate: Mon Mar 22 10:27:02 2021 +0530

    Fixed the error that caused C++ lint to fail (#1147)
---
 lang/c++/impl/json/JsonIO.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lang/c++/impl/json/JsonIO.hh b/lang/c++/impl/json/JsonIO.hh
index 5ae7ae0..cb42e37 100644
--- a/lang/c++/impl/json/JsonIO.hh
+++ b/lang/c++/impl/json/JsonIO.hh
@@ -394,7 +394,7 @@ public:
         sep();
         std::ostringstream oss;
         oss << boost::lexical_cast<std::string>(t);
-        const std::string& s = oss.str();
+        const std::string s = oss.str();
         out_.writeBytes(reinterpret_cast<const uint8_t*>(s.data()), s.size());
         sep2();
     }
@@ -411,7 +411,7 @@ public:
         } else {
             oss << "-Infinity";
         }
-        const std::string& s = oss.str();
+        const std::string s = oss.str();
         out_.writeBytes(reinterpret_cast<const uint8_t*>(s.data()), s.size());
         sep2();
     }