Commit d5dc5eae authored by Murray Cumming's avatar Murray Cumming
Browse files

Remove redundant const_cast<>.

Noticed by the IntelliJ CLion inspections
parent 887a3491
......@@ -300,7 +300,7 @@ Glib::ustring Field::to_file_format(const Gnome::Gda::Value& value, glom_field_t
return Glib::ustring();
else
{
if(!gda_blob_op_read_all(const_cast<GdaBlobOp*>(gdablob->op), const_cast<GdaBlob*>(gdablob)))
if(!gda_blob_op_read_all(gdablob->op, const_cast<GdaBlob*>(gdablob)))
{
return Glib::ustring();
}
......
......@@ -208,7 +208,7 @@ boost::python::object glom_pygda_value_as_boost_pyobject(const Glib::ValueBase&
const auto gdablob = gda_value_get_blob (boxed);
if(gdablob && gdablob->op)
{
if(gda_blob_op_read_all(const_cast<GdaBlobOp*>(gdablob->op), const_cast<GdaBlob*>(gdablob)))
if(gda_blob_op_read_all(gdablob->op, const_cast<GdaBlob*>(gdablob)))
{
ret = boost::python::object((const char*)gdablob->data.data); /* TODO: Use the size. TODO: Check for null GdaBinary. */
}
......
......@@ -293,7 +293,7 @@ const GdaBinary* ImageGlom::get_binary() const
else if(m_original_data.get_value_type() == GDA_TYPE_BLOB)
{
const auto gda_blob = gda_value_get_blob(m_original_data.gobj());
if(gda_blob && gda_blob_op_read_all(const_cast<GdaBlobOp*>(gda_blob->op), const_cast<GdaBlob*>(gda_blob)))
if(gda_blob && gda_blob_op_read_all(gda_blob->op, const_cast<GdaBlob*>(gda_blob)))
gda_binary = &(gda_blob->data);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment