[PATCH] Check url in KDirModelPrivate::nodeForUrl()

Thomas Zander zander at kde.org
Thu Jul 19 19:15:47 BST 2007


On Thursday 19 July 2007 19:39:02 David Faure wrote:
> OK, you're not the first one who expects more builtin-checks rather
> than contract-based programming, so I don't object to the patch.

What about having both? (so move the assert to be executed before the 
added code is executed)

Asserting is only done when you compile kdelibs with debugging on, so you 
can still find your application bug when you use it like that. But it 
won't crash the app (immediately) in a production environment.
-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070719/a198e676/attachment.sig>


More information about the kde-core-devel mailing list