]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Don't throw an exception if passed bad parameters to stringjoiner.
authorRobin Burchell <robin+git@viroteck.net>
Sun, 1 Jul 2012 19:34:18 +0000 (21:34 +0200)
committerRobin Burchell <robin+git@viroteck.net>
Sun, 1 Jul 2012 19:35:32 +0000 (21:35 +0200)
commit972af12415addb1b5d72708af5d98bd4bd1bd47a
treeba14b1e483b8f996edd4765794a38517ee108afc
parent9475a10a86c6c2e8575366f6e0c9b28b66a97698
Don't throw an exception if passed bad parameters to stringjoiner.

It's far too common to "misuse" this API by accidentally trying to use
stringjoiner with an empty container, and fixing that is more or less adding
boilerplate in every place we fix it.

Instead, let's just return and not touch the string, and not throw.

Done-with: Attila Molnar <attilamolnar@hush.com>
src/hashcomp.cpp