mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove redundant branch in QIODevice::seek()
missed a hunk, should've been applied witha0ef87cd2b
upstream commit:05d980664f
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
095e1abcc9
commit
4b1bac1bc0
1 changed files with 2 additions and 4 deletions
|
@ -648,10 +648,8 @@ bool QIODevice::seek(qint64 pos)
|
|||
#endif
|
||||
|
||||
qint64 offset = pos - d->pos;
|
||||
if (!d->isSequential()) {
|
||||
d->pos = pos;
|
||||
d->devicePos = pos;
|
||||
}
|
||||
d->pos = pos;
|
||||
d->devicePos = pos;
|
||||
|
||||
if (offset < 0 || offset >= d->buffer.size())
|
||||
// When seeking backwards, an operation that is only allowed for
|
||||
|
|
Loading…
Add table
Reference in a new issue