Esempio n. 1
0
void tst_QByteArray::repeatedSignature() const
{
    /* repated() should be a const member. */
    const QByteArray string;
    string.repeated(3);
}
Esempio n. 2
0
QByteArray gCrypt::encodePassword(const QString &password,const QByteArray &msg,bool *ok)
{
    QByteArray newMsg=msg.repeated(gCrypt::repeated);

    return gCrypt::encode(password,newMsg,ok);
}