[glom] Avoid a repeated if else block.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Avoid a repeated if else block.
- Date: Thu, 5 Nov 2015 22:20:51 +0000 (UTC)
commit b9f1f162d29d34f1737ada88b6d64bd6c7bd1d77
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Nov 3 17:10:20 2015 +0100
Avoid a repeated if else block.
Found by cppcheck.
.../libglom/python_embed/pygdavalue_conversions.cc | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/glom/libglom/python_embed/pygdavalue_conversions.cc
b/glom/libglom/python_embed/pygdavalue_conversions.cc
index 915d416..f75609f 100644
--- a/glom/libglom/python_embed/pygdavalue_conversions.cc
+++ b/glom/libglom/python_embed/pygdavalue_conversions.cc
@@ -236,8 +236,6 @@ boost::python::object glom_pygda_value_as_boost_pyobject(const Glib::ValueBase&
ret = boost::python::object(gda_numeric_get_double((GdaNumeric*)val));
} else if(value_type == G_TYPE_FLOAT) {
ret = boost::python::object(g_value_get_float(boxed));
- } else if(value_type == GDA_TYPE_SHORT) {
- ret = boost::python::object(gda_value_get_short(boxed));
} else if(value_type == G_TYPE_STRING) {
const auto val = g_value_get_string(boxed);
ret = boost::python::object(val);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]