vieraci
31st May 2009, 11:39
I have this compile error which has got me stumped.
error: passing ‘const QString’ as ‘this’ argument of ‘QString& QString::remove(const QRegExp&)’ discards qualifiers
the code in question is:
QString getPhoneMask(const QString &text)
{
QString tmp = text.remove(QRegExp("[()-]"));
I don't understand this...can anyone decipher the message ?
error: passing ‘const QString’ as ‘this’ argument of ‘QString& QString::remove(const QRegExp&)’ discards qualifiers
the code in question is:
QString getPhoneMask(const QString &text)
{
QString tmp = text.remove(QRegExp("[()-]"));
I don't understand this...can anyone decipher the message ?