1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10: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:
Matthijs Kooijman 2013-12-24 13:21:42 +01:00
parent f304abe35f
commit 2ea12d0220
2 changed files with 2 additions and 2 deletions

View File

@ -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[])

View File

@ -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[])