forgot to disable mixed char and const char overloads

the comment was wrong, char gets converted to const char, not the
other way around
This commit is contained in:
Luboš Luňák 2012-03-08 01:05:45 +01:00
parent 06a6b0ad1e
commit 61327c9948

View file

@ -1496,8 +1496,20 @@ public:
template< int N1, int N2 > template< int N1, int N2 >
OUString replaceFirst( char (&from)[ N1 ], char (&to)[ N2 ], OUString replaceFirst( char (&from)[ N1 ], char (&to)[ N2 ],
sal_Int32 * index = 0) const; sal_Int32 * index = 0) const;
// it is enough to just have a char+char overload, e.g. char+const char will /**
// be caught by it as well * It is an error to call this overload. Strings cannot directly use non-const char[].
* @internal
*/
template< int N1, int N2 >
OUString replaceFirst( const char (&from)[ N1 ], char (&to)[ N2 ],
sal_Int32 * index = 0) const;
/**
* It is an error to call this overload. Strings cannot directly use non-const char[].
* @internal
*/
template< int N1, int N2 >
OUString replaceFirst( char (&from)[ N1 ], const char (&to)[ N2 ],
sal_Int32 * index = 0) const;
/** /**
Returns a new string resulting from replacing all occurrences of a given Returns a new string resulting from replacing all occurrences of a given