More cleanups

This commit is contained in:
Oleg Kalachev
2023-05-26 16:46:22 +03:00
parent 88cc792287
commit f84d1e95dd
5 changed files with 18 additions and 47 deletions

View File

@@ -36,9 +36,9 @@ class __FlashStringHelper;
// https://www.arduino.cc/reference/en/language/variables/data-types/stringobject/
class String: public std::string {
public:
long toInt() { return atol(this->c_str()); }
float toFloat() { return atof(this->c_str()); }
bool isEmpty() { return this->empty(); }
long toInt() const { return atol(this->c_str()); }
float toFloat() const { return atof(this->c_str()); }
bool isEmpty() const { return this->empty(); }
};
class Print;