-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Template container instead of direct pointer manipulation. #95
Conversation
…copy and memory allocation when String passed by value
|
wow! quite the pull request :D |
begin/end methods it's enough for 'for( : )' loop count() renamed to length() spacing fixing
|
Fixed issue with travis build by removing c++ std:: includes. It's odd, because on mac adding std:: includes not produce any build issues for ESP8266. |
…copy and memory allocation when String passed by value
|
you have tested everything correct? |
|
It's working well in my project. Yes, pull request looks very massy. But most changes - is 'const' and 'reference' parameter types. |
|
pff I totally forgot about this PR, sorry :) |
(fix me-no-dev#94) Remove MAX_PRINTF_LEN limitation and fixed wrong usage of vsnprintf
Instead of StringArray and direct pointer manipulation added template LinkedList container.
It's allow for( : ) enumeration and basic add/remove functionality.
Removed duplicated code.
'OnRemove' block allow handle items that will be removed and for example delete pointers in single place.
Const reference to String as method parameters to prevent additional copy and memory allocation when String passed by value