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 5e376447de
commit 233519419b
1 changed files with 1 additions and 1 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[])