test/encoding/ceph_dencoder.cc: use static_cast instead of C-Style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-12 11:04:24 +01:00
parent 8dc0a3292d
commit a6bd6581c3

View File

@ -148,7 +148,7 @@ public:
throw std::runtime_error(ss.str());
}
m_object->put();
m_object = (T *)n;
m_object = static_cast<T *>(n);
}
catch (buffer::error& e) {
return e.what();