mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
use public QByteArray constructor in QByteArray::trimmed()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a62e9bd778
commit
070bfe9e4a
1 changed files with 1 additions and 2 deletions
|
@ -3169,8 +3169,7 @@ QByteArray QByteArray::trimmed() const
|
|||
}
|
||||
int l = end - start + 1;
|
||||
if (l <= 0) {
|
||||
shared_empty.ref.ref();
|
||||
return QByteArray(&shared_empty, 0, 0);
|
||||
return QByteArray();
|
||||
}
|
||||
return QByteArray(s+start, l);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue