[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kjs
From: Maks Orlovich <maksim () kde ! org>
Date: 2010-05-02 16:25:22
Message-ID: 20100502162522.67D30AC8AA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1121889 by orlovich:
Eeek. Unbreak List::copyTail aka Function.prototype.call. Good thing it showed up on bugs.k.o,
since I am apparently useless at reading testregression output.
M +9 -9 list.cpp
--- trunk/KDE/kdelibs/kjs/list.cpp #1121888:1121889
@@ -276,22 +276,22 @@
{
List copy;
- ListImp* ourImp = static_cast<ListImp *>(_impBase);
- ListImpBase* otherImp = copy._impBase;
+ ListImpBase* inImp = _impBase;
+ ListImp* outImp = static_cast<ListImp *>(copy._impBase);
- int size = otherImp->size;
- ourImp->size = size - 1;
+ int size = inImp->size - 1;
+ outImp->size = size;
if (size > inlineListValuesSize) {
// need an out-of-line buffer
- ourImp->capacity = size;
- ourImp->data = new LocalStorageEntry[size];
+ outImp->capacity = size;
+ outImp->data = new LocalStorageEntry[size];
} else {
- ourImp->capacity = 0;
+ outImp->capacity = 0;
}
- for (int c = 1; c < size; ++c)
- ourImp->data[c-1] = otherImp->data[c];
+ for (int c = 0; c < size; ++c)
+ outImp->data[c] = inImp->data[c+1];
return copy;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic