It has been a long day and I am kind of tired. I hope I am writing this correctly. You were declaring one "pointer to QChar" and one "QChar". If you want both variables to be pointers, you can declare them like this (* before both variable names):
if (str1data == strp++)
{
return str1data+1;
}
QChar *str1data, *strp;
if (str1data == strp++)
{
return str1data+1;
}
To copy to clipboard, switch view to plain text mode
Or, you could create a typedef and use that for both as in this example code.
QCharP str1data, strp;
if (str1data == strp++)
{
return str1data+1;
}
typedef QChar* QCharP;
QCharP str1data, strp;
if (str1data == strp++)
{
return str1data+1;
}
To copy to clipboard, switch view to plain text mode
Bookmarks