[Konsole-devel] [Bug 214547] KPart needs an API to retrieve $PWD
Mathias Panzenböck
grosser.meister.morti at gmx.net
Sat Nov 14 23:25:53 UTC 2009
https://bugs.kde.org/show_bug.cgi?id=214547
--- Comment #5 from Mathias Panzenböck <grosser meister morti gmx net> 2009-11-15 00:25:52 ---
PS: (Off Topic) I've seen that you often use code like this:
if (!m_terminals.contains(terminalId)) return;
Terminal* terminal = m_terminals.value(terminalId);
This makes two hastable lookups. Ok, this is really not performance critical,
but I think this would still be much more nice:
Terminal* terminal = m_terminals.value(terminalId);
if (!terminal) return;
See:
http://doc.trolltech.com/4.5/qhash.html#value
http://doc.trolltech.com/4.5/containers.html#default-constructed-values
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list