Switch readImage to take a reference instead of a pointer
There was nowhere that an actual pointer was passed, and I wanted to do references for something else.
This commit is contained in:
parent
8b33b1f08b
commit
fda6d7629a
5 changed files with 10 additions and 10 deletions
|
|
@ -689,10 +689,10 @@ utils::restoreCombobox(QComboBox *combo, const QString &value)
|
|||
}
|
||||
|
||||
QImage
|
||||
utils::readImage(const QByteArray *data)
|
||||
utils::readImage(const QByteArray &data)
|
||||
{
|
||||
QBuffer buf;
|
||||
buf.setData(*data);
|
||||
buf.setData(data);
|
||||
QImageReader reader(&buf);
|
||||
reader.setAutoTransform(true);
|
||||
return reader.read();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue