[apps/shared] Avoid container casting when possible

Change-Id: I646e605c88ad577ebd9102032aad77ff8eae6ad7
This commit is contained in:
Émilie Feral
2017-02-13 18:05:02 +01:00
parent 627dd676be
commit 15a736c855
18 changed files with 54 additions and 52 deletions

View File

@@ -57,7 +57,7 @@ bool GraphController::handleEnter() {
}
void GraphController::reloadBannerView() {
AppsContainer * container = (AppsContainer *)app()->container();
AppsContainer * container = ((App *)app())->container();
m_bannerView.setLegendAtIndex((char *)"y = ax+b", 0);
char buffer[k_maxNumberOfCharacters + Complex::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits)];
const char * legend = "a = ";