Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 171893 Details for
Bug 246568
kdelibs-4.1.3 does not compile with gcc 4.1.1 or 3.4.6
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to work around the compile failure
kdelibs-4.1.3-privat.patch (text/plain), 2.84 KB, created by
Christian Apeltauer
on 2008-11-15 18:20:09 UTC
(
hide
)
Description:
Patch to work around the compile failure
Filename:
MIME Type:
Creator:
Christian Apeltauer
Created:
2008-11-15 18:20:09 UTC
Size:
2.84 KB
patch
obsolete
>diff -Naur kdelibs-4.1.3.old/kio/kio/kdirlister.cpp kdelibs-4.1.3/kio/kio/kdirlister.cpp >--- kdelibs-4.1.3.old/kio/kio/kdirlister.cpp 2008-10-30 14:24:07.000000000 +0100 >+++ kdelibs-4.1.3/kio/kio/kdirlister.cpp 2008-11-15 16:54:29.000000000 +0100 >@@ -1065,7 +1065,8 @@ > // the signals to make sure it exists in KDirListerCache in case someone > // calls listDir during the signal emission > Q_ASSERT( dirData.listersCurrentlyHolding.isEmpty() ); >- dirData.moveListersWithoutCachedItemsJob(); >+ //dirData.moveListersWithoutCachedItemsJob(); >+ moveListersWithoutCachedItemsJob(dirData); > > if ( job->error() ) > { >@@ -1437,7 +1438,8 @@ > DirectoryData& dirData = directoryData[jobUrlStr]; > // Collect the dirlisters which were listing the URL using that ListJob > // plus those that were already holding that URL - they all get updated. >- dirData.moveListersWithoutCachedItemsJob(); >+ //dirData.moveListersWithoutCachedItemsJob(); >+ moveListersWithoutCachedItemsJob(dirData); > QList<KDirLister *> listers = dirData.listersCurrentlyHolding; > listers += dirData.listersCurrentlyListing; > >@@ -2514,20 +2516,20 @@ > } > } > >-void KDirListerCache::DirectoryData::moveListersWithoutCachedItemsJob() >+void KDirListerCache::moveListersWithoutCachedItemsJob(DirectoryData& dirData) > { > // Move dirlisters from listersCurrentlyListing to listersCurrentlyHolding, > // but not those that are still waiting on a CachedItemsJob... > // Unit-testing note: > // Run kdirmodeltest in valgrind to hit the case where an update > // is triggered while a lister has a CachedItemsJob (different timing...) >- QMutableListIterator<KDirLister *> lister_it(listersCurrentlyListing); >+ QMutableListIterator<KDirLister *> lister_it(dirData.listersCurrentlyListing); > while (lister_it.hasNext()) { > KDirLister* kdl = lister_it.next(); > if (!kdl->d->m_cachedItemsJob) { >- Q_ASSERT(!listersCurrentlyHolding.contains(kdl)); >+ Q_ASSERT(!dirData.listersCurrentlyHolding.contains(kdl)); > // OK, move this lister from "currently listing" to "currently holding". >- listersCurrentlyHolding.append(kdl); >+ dirData.listersCurrentlyHolding.append(kdl); > lister_it.remove(); > } > } >diff -Naur kdelibs-4.1.3.old/kio/kio/kdirlister_p.h kdelibs-4.1.3/kio/kio/kdirlister_p.h >--- kdelibs-4.1.3.old/kio/kio/kdirlister_p.h 2008-10-30 14:24:07.000000000 +0100 >+++ kdelibs-4.1.3/kio/kio/kdirlister_p.h 2008-11-15 16:54:35.000000000 +0100 >@@ -382,8 +382,8 @@ > // Listers that are currently holding this url > QList<KDirLister *> listersCurrentlyHolding; > >- void moveListersWithoutCachedItemsJob(); > }; >+ void moveListersWithoutCachedItemsJob(DirectoryData&); > > typedef QHash<QString /*url*/, DirectoryData> DirectoryDataHash; > DirectoryDataHash directoryData;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246568
: 171893 |
172025