[apps/code] Remove TODOs

This commit is contained in:
Léa Saviot
2020-04-30 16:28:05 +02:00
committed by Émilie Feral
parent 68867e45e7
commit 714410287a
3 changed files with 6 additions and 14 deletions

View File

@@ -375,6 +375,7 @@ bool VariableBoxController::selectLeaf(int rowIndex) {
void VariableBoxController::insertTextInCaller(const char * text, int textLength) {
int textLen = textLength < 0 ? strlen(text) : textLength;
constexpr int k_maxScriptObjectNameSize = 100; // Ad hoc value
int commandBufferMaxSize = std::min(k_maxScriptObjectNameSize, textLen + 1);
char commandBuffer[k_maxScriptObjectNameSize];
Shared::ToolboxHelpers::TextToInsertForCommandText(text, textLen, commandBuffer, commandBufferMaxSize, true);