mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-10 21:24:12 +01: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:
parent
f304abe35f
commit
2ea12d0220
@ -53,7 +53,7 @@ size_t Print::print(const __FlashStringHelper *ifsh)
|
|||||||
|
|
||||||
size_t Print::print(const String &s)
|
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[])
|
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)
|
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[])
|
size_t Print::print(const char str[])
|
||||||
|
Loading…
Reference in New Issue
Block a user