1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-23 19:21:59 +03:00

fix http parsing (#5262)

* follows #5252
* use const refs where relevant (aka stop being nasty with ram and cpu)
This commit is contained in:
david gauchard
2018-10-23 22:17:54 +02:00
committed by GitHub
parent e954022b94
commit a063c2b36f
5 changed files with 93 additions and 91 deletions

View File

@ -796,3 +796,7 @@ float String::toFloat(void) const {
return atof(buffer);
return 0;
}
// global empty string to allow returning const String& with nothing
const String emptyString;

View File

@ -294,5 +294,7 @@ class StringSumHelper: public String {
}
};
extern const String emptyString;
#endif // __cplusplus
#endif // String_class_h