FileStore.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 2014-09-03 17:51:04 +02:00
parent 6ec08e06bc
commit cbd324da59

View File

@ -2226,7 +2226,7 @@ unsigned FileStore::_do_transaction(
dout(10) << "_do_transaction on " << &t << dendl;
#ifdef WITH_LTTNG
const char *osr_name = t.get_osr() ? ((OpSequencer*)t.get_osr())->get_name().c_str() : "<NULL>";
const char *osr_name = t.get_osr() ? static_cast<OpSequencer*>(t.get_osr())->get_name().c_str() : "<NULL>";
#endif
Transaction::iterator i = t.begin();