mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
avoid temporary in QUrl streaming operator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
f2993e0ccb
commit
999d86187b
1 changed files with 1 additions and 2 deletions
|
@ -3959,8 +3959,7 @@ bool QUrl::isParentOf(const QUrl &childUrl) const
|
|||
*/
|
||||
QDataStream &operator<<(QDataStream &out, const QUrl &url)
|
||||
{
|
||||
QByteArray u = url.toEncoded();
|
||||
out << u;
|
||||
out << (QByteArray)url.toEncoded();
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue