Re: QString ~ QByte error
Quote:
Originally Posted by mhoover
This is probably a stupid mistake on my part, but every time I try to pass a blank QString, the compiler seems to think I have a QByteArray :
Maybe because QString::toAscii() returns a QByteArray? Try passing just "server" if you want to have a QString or server.toAscii().data() if you need a const char * (just remember it's a temporary object, so don't store the pointer anywhere).
Re: QString ~ QByte error
Sweet!
I changed
Code:
LemnAdeCmdClient
::LemnAdeCmdClient(const QString server
) : LemonadeCommandClient(server.toAscii()),
to:
Code:
LemnAdeCmdClient
::LemnAdeCmdClient(const QString server
) : LemonadeCommandClient(server.toAscii().data()),
And it worked great! I thought the problem was later because I was getting a different line number from the compile error.
Thanks again, Wysota!