I wrote a function to convert a hexa string representation (like x00) of some binary data to the data itself.

How to improve this code?

```
QByteArray restoreData(const QByteArray &data, const QString prepender = "x")
{
    QByteArray restoredData = data;

    return QByteArray::fromHex(restoredData.replace(prepender, ""));
}

```