[glom] Remove unnecessary switch breaks after returns.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unnecessary switch breaks after returns.
- Date: Sun, 1 Nov 2015 12:57:31 +0000 (UTC)
commit b7941165c777c31907482da91cea8783622f0546
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 13:27:32 2015 +0100
Remove unnecessary switch breaks after returns.
Found by cppcheck.
glom/libglom/data_structure/field.cc | 4 ----
glom/utility_widgets/canvas/canvas_item_movable.cc | 2 --
2 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/glom/libglom/data_structure/field.cc b/glom/libglom/data_structure/field.cc
index 247b562..5f7a5bc 100644
--- a/glom/libglom/data_structure/field.cc
+++ b/glom/libglom/data_structure/field.cc
@@ -428,8 +428,6 @@ Glib::ustring Field::sql_find(const Gnome::Gda::Value& value, const Glib::RefPtr
return "''"; //We want to ignore the concept of NULL strings, and deal only with empty strings.
else
return ("%" + value.to_string() + "%"); //TODO: Escape it before adding "%", but then prevent
SqlBuilder from re-escaping it.
-
- break;
}
case(glom_field_type::DATE):
case(glom_field_type::TIME):
@@ -438,7 +436,6 @@ Glib::ustring Field::sql_find(const Gnome::Gda::Value& value, const Glib::RefPtr
default:
{
return sql(value, connection);
- break;
}
}
}
@@ -463,7 +460,6 @@ Gnome::Gda::SqlOperatorType Field::sql_find_operator() const
default:
{
return Gnome::Gda::SQL_OPERATOR_TYPE_EQ;
- break;
}
}
}
diff --git a/glom/utility_widgets/canvas/canvas_item_movable.cc
b/glom/utility_widgets/canvas/canvas_item_movable.cc
index 50dac4c..e01f6ed 100644
--- a/glom/utility_widgets/canvas/canvas_item_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_item_movable.cc
@@ -112,13 +112,11 @@ bool CanvasItemMovable::on_button_press_event(const Glib::RefPtr<Goocanvas::Item
m_shift_click = true;
return true; // Handled.
- break;
}
case 3:
{
m_signal_show_context.emit(event->button, event->time);
return false; // Not fully Handled.
- break;
}
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]