Revision b8f64ca...
Go back to digest for 28th October 2012Optimization in KDE Base
Frank Reininghaus committed changes in [kdelibs/KDE/4.10] /:
Consider two KFileItems 'equal' if they share the same URL
Up to now, KFileItem::operator==(const KFileItem&) only returned true if
both items shared the same d pointer. However, the implicitly shared
d pointer is an implementation detail of the class, and making the
comparison depend on it might not be expected by the developer using the
class. Fixes a problem in Dolphin, where the unexpected outcome of the
comparison caused permanent high CPU usage.
File Changes
Modified 3 files
- kio/kio/kfileitem.cpp
- kio/kio/kfileitem.h
- kio/tests/kfileitemtest.cpp
3 files changed in total