Remove some warnings

Change-Id: I18456e133c84e81adf5b18171ed23e7d15f6644b
This commit is contained in:
Romain Goyet
2016-10-04 17:26:45 +02:00
parent 416a14d512
commit 7b059c096c
2 changed files with 5 additions and 3 deletions

View File

@@ -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;
}
}

View File

@@ -27,9 +27,11 @@ View * InputViewController::ContentView::subviewAtIndex(int index) {
return &m_textField;
} else {
assert(false);
return nullptr;
}
default:
assert(false);
return nullptr;
}
}