mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[apps] Cap the size of stores (memory issue)
Change-Id: I69dbb593b42615d601b0adcf7580c740ecd22e4b
This commit is contained in:
@@ -7,8 +7,8 @@ extern "C" {
|
||||
|
||||
namespace Graph {
|
||||
|
||||
constexpr int CartesianFunctionStore::k_numberOfDefaultColors;
|
||||
constexpr KDColor CartesianFunctionStore::k_defaultColors[k_numberOfDefaultColors];
|
||||
constexpr int CartesianFunctionStore::k_maxNumberOfFunctions;
|
||||
constexpr KDColor CartesianFunctionStore::k_defaultColors[k_maxNumberOfFunctions];
|
||||
constexpr const char * CartesianFunctionStore::k_functionNames[k_maxNumberOfFunctions];
|
||||
|
||||
CartesianFunctionStore::CartesianFunctionStore() :
|
||||
@@ -86,7 +86,7 @@ const char * CartesianFunctionStore::firstAvailableName() {
|
||||
}
|
||||
|
||||
const KDColor CartesianFunctionStore::firstAvailableColor() {
|
||||
for (int k = 0; k < k_numberOfDefaultColors; k++) {
|
||||
for (int k = 0; k < k_maxNumberOfFunctions; k++) {
|
||||
int j = 0;
|
||||
while (j < m_numberOfFunctions) {
|
||||
if (m_functions[j].color() == k_defaultColors[k]) {
|
||||
|
||||
Reference in New Issue
Block a user