summaryrefslogtreecommitdiff
path: root/themes/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'themes/list.h')
-rw-r--r--themes/list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/list.h b/themes/list.h
index 0c5b0a1..25b236a 100644
--- a/themes/list.h
+++ b/themes/list.h
@@ -73,10 +73,12 @@ namespace matte {
template <typename T>
bool List<T>::grow(size_t newSize) {
if (!growDynamically) {
+ logger_error("Cannot grow list: growDynamically is disabled");
return false;
}
if (newSize == 0) {
+ logger_error("Cannot grow list: newSize is zero!");
return false;
}
@@ -240,4 +242,4 @@ namespace matte {
memmove(&data[idx], &temp, sizeof(T));
}
}
-} \ No newline at end of file
+}