* Thu Mar 25 2010 Rex Dieter <rdieter@fedoraproject.org> 6:4.4.1-9

- refresh kdelibs-4.4.2-kpixmapcache.patch
This commit is contained in:
Rex Dieter 2010-03-25 14:06:50 +00:00
parent 5a62fcab6d
commit 81049d0020
2 changed files with 15 additions and 11 deletions

View File

@ -1,5 +1,5 @@
--- kdelibs/kdeui/util/kpixmapcache.cpp 2010/03/17 02:34:11 1104230 --- branches/KDE/4.4/kdelibs/kdeui/util/kpixmapcache.cpp 2010/01/24 02:37:20 1079318
+++ kdelibs/kdeui/util/kpixmapcache.cpp 2010/03/17 02:38:08 1104231 +++ branches/KDE/4.4/kdelibs/kdeui/util/kpixmapcache.cpp 2010/03/25 02:24:54 1107210
@@ -40,6 +40,7 @@ @@ -40,6 +40,7 @@
#include <kstandarddirs.h> #include <kstandarddirs.h>
#include <kdebug.h> #include <kdebug.h>
@ -19,7 +19,7 @@
if (key < fkey) { if (key < fkey) {
if (leftchild) { if (leftchild) {
return binarySearchKey(stream, key, leftchild); return binarySearchKey(stream, key, leftchild);
@@ -660,12 +665,21 @@ @@ -660,12 +665,23 @@
// exist yet and there are no entries. Otherwise, do a binary search // exist yet and there are no entries. Otherwise, do a binary search
// starting from the root node. // starting from the root node.
if (!stream.atEnd()) { if (!stream.atEnd()) {
@ -39,11 +39,12 @@
// Load the found entry and check if it's the one we're looking for. // Load the found entry and check if it's the one we're looking for.
device->seek(nodeoffset); device->seek(nodeoffset);
- QString fkey; - QString fkey;
- stream >> fkey; stream >> fkey;
+
if (fkey == key) { if (fkey == key) {
// Read offset and statistics // Read offset and statistics
qint32 foffset; qint32 foffset;
@@ -814,7 +828,9 @@ @@ -814,7 +830,9 @@
QString fkey; QString fkey;
stream.device()->seek(parentoffset); stream.device()->seek(parentoffset);
stream >> fkey; stream >> fkey;
@ -54,7 +55,7 @@
// We're overwriting an existing entry // We're overwriting an existing entry
offset = parentoffset; offset = parentoffset;
} }
@@ -1195,16 +1211,14 @@ @@ -1195,16 +1213,14 @@
return false; return false;
} }
@ -75,7 +76,7 @@
if (!indexfile.open(QIODevice::WriteOnly)) { if (!indexfile.open(QIODevice::WriteOnly)) {
kError() << "Couldn't create index file" << d->mIndexFile; kError() << "Couldn't create index file" << d->mIndexFile;
return false; return false;
@@ -1212,7 +1226,7 @@ @@ -1212,7 +1228,7 @@
d->mCacheId = ::time(0); d->mCacheId = ::time(0);
d->mTimestamp = ::time(0); d->mTimestamp = ::time(0);
@ -84,7 +85,7 @@
// We can't know the full size until custom headers written. // We can't know the full size until custom headers written.
// mmapFiles() will take care of correcting the size. // mmapFiles() will take care of correcting the size.
KPixmapCacheIndexHeader indexHeader = { {0}, KPIXMAPCACHE_VERSION, 0, d->mCacheId, d->mTimestamp }; KPixmapCacheIndexHeader indexHeader = { {0}, KPIXMAPCACHE_VERSION, 0, d->mCacheId, d->mTimestamp };
@@ -1221,7 +1235,7 @@ @@ -1221,7 +1237,7 @@
indexfile.write(reinterpret_cast<char*>(&indexHeader), sizeof indexHeader); indexfile.write(reinterpret_cast<char*>(&indexHeader), sizeof indexHeader);
// Create data file // Create data file
@ -93,7 +94,7 @@
if (!datafile.open(QIODevice::WriteOnly)) { if (!datafile.open(QIODevice::WriteOnly)) {
kError() << "Couldn't create data file" << d->mDataFile; kError() << "Couldn't create data file" << d->mDataFile;
return false; return false;
@@ -1243,40 +1257,54 @@ @@ -1243,40 +1259,54 @@
// Close the files and mmap them (if mmapping is used) // Close the files and mmap them (if mmapping is used)
indexfile.close(); indexfile.close();
datafile.close(); datafile.close();

View File

@ -8,7 +8,7 @@
Summary: KDE Libraries Summary: KDE Libraries
Version: 4.4.1 Version: 4.4.1
Release: 8%{?dist} Release: 9%{?dist}
Name: kdelibs Name: kdelibs
Epoch: 6 Epoch: 6
@ -241,7 +241,7 @@ format for easy browsing.
%patch24 -p1 -b .drkonq %patch24 -p1 -b .drkonq
%endif %endif
%patch27 -p1 -b .no_rpath %patch27 -p1 -b .no_rpath
%patch28 -p1 -b .kpixmapcache %patch28 -p4 -b .kpixmapcache
# upstreamable patches # upstreamable patches
@ -439,6 +439,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Thu Mar 25 2010 Rex Dieter <rdieter@fedoraproject.org> 6:4.4.1-9
- refresh kdelibs-4.4.2-kpixmapcache.patch
* Wed Mar 24 2010 Rex Dieter <rdieter@fedoraproject.org> 6:4.4.1-8 * Wed Mar 24 2010 Rex Dieter <rdieter@fedoraproject.org> 6:4.4.1-8
- Obsoletes: webkitkde (#576634) - Obsoletes: webkitkde (#576634)