| 1 |
// Bug: g++ thought that the QChar overload was a viable but ambiguous |
| 2 |
// candidate. It isn't viable, because there's no conversion from const |
| 3 |
// char * to QChar. |
| 4 |
|
| 5 |
class QChar { |
| 6 |
public: |
| 7 |
QChar( char c ); |
| 8 |
QChar( unsigned char c ); |
| 9 |
}; |
| 10 |
|
| 11 |
class QString |
| 12 |
{ |
| 13 |
public: |
| 14 |
QString( const char *str ); // deep copy |
| 15 |
|
| 16 |
QString &insert( unsigned int index, const QString & ); |
| 17 |
QString &insert( unsigned int index, QChar ); |
| 18 |
QString &prepend( const char* ); |
| 19 |
}; |
| 20 |
|
| 21 |
inline QString &QString::prepend( const char* s ) |
| 22 |
{ return insert(0,s); } |