mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Remove unneeded casts in Print::write(const String&)
Now that Print::write(const char*) is also available, these casts are no longer needed.
This commit is contained in:
@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
|
||||
|
||||
size_t Print::print(const String &s)
|
||||
{
|
||||
return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length());
|
||||
return write(s.c_str(), s.length());
|
||||
}
|
||||
|
||||
size_t Print::print(const char str[])
|
||||
|
@ -46,7 +46,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
|
||||
|
||||
size_t Print::print(const String &s)
|
||||
{
|
||||
return write(reinterpret_cast<const uint8_t*>(s.c_str()), s.length());
|
||||
return write(s.c_str(), s.length());
|
||||
}
|
||||
|
||||
size_t Print::print(const char str[])
|
||||
|
Reference in New Issue
Block a user