[apps] Toolbox: get rid of variable-size tables

This commit is contained in:
Émilie Feral
2018-09-17 17:12:27 +02:00
parent d17b0f1afb
commit ba0f866dc6
4 changed files with 6 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ void SequenceToolbox::buildExtraCellsLayouts(const char * sequenceName, int recu
}
bool SequenceToolbox::selectAddedCell(int selectedRow){
int bufferSize = 10;
constexpr int bufferSize = 10;
char buffer[bufferSize];
m_addedCellLayout[selectedRow].serialize(buffer, bufferSize);
sender()->handleEventWithText(buffer);