From a6bd6581c368989ebaa53bad007478af41892a5b Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 12 Mar 2013 11:04:24 +0100 Subject: [PATCH] test/encoding/ceph_dencoder.cc: use static_cast instead of C-Style cast Signed-off-by: Danny Al-Gaaf --- src/test/encoding/ceph_dencoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/encoding/ceph_dencoder.cc b/src/test/encoding/ceph_dencoder.cc index 5955ef6d0ad..fe4acb9b46f 100644 --- a/src/test/encoding/ceph_dencoder.cc +++ b/src/test/encoding/ceph_dencoder.cc @@ -148,7 +148,7 @@ public: throw std::runtime_error(ss.str()); } m_object->put(); - m_object = (T *)n; + m_object = static_cast(n); } catch (buffer::error& e) { return e.what();