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:
@ -113,10 +113,7 @@ String::String(double value, unsigned char decimalPlaces) {
|
||||
}
|
||||
|
||||
String::~String() {
|
||||
if(buffer) {
|
||||
free(buffer);
|
||||
}
|
||||
init();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
// /*********************************************/
|
||||
|
Reference in New Issue
Block a user