1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-17 12:02:15 +03:00

Minimizing code redundancy (#4695)

String's destructor does the same as the 'invalidate' method.
This commit is contained in:
fabianoms
2018-04-28 17:02:08 -03:00
committed by Develo
parent 41a64707f1
commit 758b0bd124

View File

@ -113,10 +113,7 @@ String::String(double value, unsigned char decimalPlaces) {
}
String::~String() {
if(buffer) {
free(buffer);
}
init();
invalidate();
}
// /*********************************************/