[apps/shared/function_banner_delegate] Factor reloadBannerViewForCursorOnFunction

This commit is contained in:
Ruben Dashyan
2019-07-08 17:34:22 +02:00
committed by Léa Saviot
parent c5ed1bebfe
commit 6d7e833a46
5 changed files with 6 additions and 5 deletions

View File

@@ -6,7 +6,8 @@ using namespace Poincare;
namespace Shared {
void FunctionBannerDelegate::reloadBannerViewForCursorOnFunction(CurveViewCursor * cursor, Ion::Storage::Record record, FunctionStore * functionStore, char symbol) {
void FunctionBannerDelegate::reloadBannerViewForCursorOnFunction(CurveViewCursor * cursor, Ion::Storage::Record record, FunctionStore * functionStore) {
CodePoint symbol = functionStore->symbol();
ExpiringPointer<Function> function = functionStore->modelForRecord(record);
constexpr int bufferSize = k_maxNumberOfCharacters+PrintFloat::bufferSizeForFloatsWithPrecision(Preferences::LargeNumberOfSignificantDigits);
char buffer[bufferSize];