From 7b059c096cccb650e35e415553737d9e6eee1dc2 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 4 Oct 2016 17:26:45 +0200 Subject: [PATCH] Remove some warnings Change-Id: I18456e133c84e81adf5b18171ed23e7d15f6644b --- apps/graph/list/list_controller.cpp | 6 +++--- escher/src/input_view_controller.cpp | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/graph/list/list_controller.cpp b/apps/graph/list/list_controller.cpp index 09421a50d..afb3a1de7 100644 --- a/apps/graph/list/list_controller.cpp +++ b/apps/graph/list/list_controller.cpp @@ -47,7 +47,7 @@ KDCoordinate ListController::columnWidth(int i) { return m_tableView.bounds().width()-k_functionNameWidth; default: assert(false); - break; + return 0; } } @@ -61,7 +61,7 @@ KDCoordinate ListController::cumulatedWidthFromIndex(int i) { return m_tableView.bounds().width(); default: assert(false); - break; + return 0; } } @@ -214,7 +214,7 @@ View * ListController::reusableCell(int index, int type) { return &m_expressionCells[index]; default: assert(false); - break; + return nullptr; } } diff --git a/escher/src/input_view_controller.cpp b/escher/src/input_view_controller.cpp index 8cf007a06..7b32991e3 100644 --- a/escher/src/input_view_controller.cpp +++ b/escher/src/input_view_controller.cpp @@ -27,9 +27,11 @@ View * InputViewController::ContentView::subviewAtIndex(int index) { return &m_textField; } else { assert(false); + return nullptr; } default: assert(false); + return nullptr; } }