mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
c3e23ca299
DOM::Node does not originally have operator<(DOM::Node, DOM::Node) implemented in khtml, so domtreecommands.cpp implemented it. However, it did so in the `domtreeviewer' namespace. When ManipulationCommand::addChangedNode() is called, it calls ChangedNodeSet::insert(), which is actually QMap<DOM::Node, bool>::insert(), which calls qMapLessThanKey(), which finally calls operator<(). Since QMap is not part of the `domtreeviewer' namespace, when qMapLessThanKey() calls operator<(), it never looks for an implementation in the `domtreeviewer' namespace. Argument-dependend name lookup makes the compiler look for an implementation in the namespace of the function arguments (DOM, in this case), so we need to move our implementation there. For some reason, the code built fine with gcc. Thanks to Nicolás Alvarez for the initial discussion, and [1] for the ugly details. [1] http://www.gotw.ca/publications/mill08.htm |
||
---|---|---|
doc | ||
dolphin | ||
kdepasswd | ||
kdialog | ||
keditbookmarks | ||
kfind | ||
konq-plugins | ||
konqueror | ||
lib | ||
nsplugins | ||
plasma | ||
CMakeLists.txt | ||
config-apps.h.cmake | ||
ConfigureChecks.cmake | ||
COPYING | ||
COPYING.DOC | ||
COPYING.LIB | ||
CTestConfig.cmake | ||
Mainpage.dox | ||
README |
KDE Base Applications consists of what runs on the desktop. This module isn't a complete collection of essential applications that a user would expect on a desktop (such as e-mail and calculator). This packages is the basic set of applications beyond the workspace that KDE applications can assume are installed. These applications should have no problem running on Windows, OS X, Gnome, etc as stand alone applications if the user wanted to use them there.