mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
[sam] Removed warning for aggregate values in function call
This commit is contained in:
@ -528,11 +528,6 @@ int String::lastIndexOf(const String &s2, unsigned int fromIndex) const
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
String String::substring( unsigned int left ) const
|
|
||||||
{
|
|
||||||
return substring(left, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
String String::substring(unsigned int left, unsigned int right) const
|
String String::substring(unsigned int left, unsigned int right) const
|
||||||
{
|
{
|
||||||
if (left > right) {
|
if (left > right) {
|
||||||
|
@ -156,7 +156,7 @@ public:
|
|||||||
int lastIndexOf( char ch, unsigned int fromIndex ) const;
|
int lastIndexOf( char ch, unsigned int fromIndex ) const;
|
||||||
int lastIndexOf( const String &str ) const;
|
int lastIndexOf( const String &str ) const;
|
||||||
int lastIndexOf( const String &str, unsigned int fromIndex ) const;
|
int lastIndexOf( const String &str, unsigned int fromIndex ) const;
|
||||||
String substring( unsigned int beginIndex ) const;
|
String substring( unsigned int beginIndex ) const { return substring(beginIndex, len); };
|
||||||
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
|
String substring( unsigned int beginIndex, unsigned int endIndex ) const;
|
||||||
|
|
||||||
// modification
|
// modification
|
||||||
|
Reference in New Issue
Block a user