From b1b3b8f88517ad8b14795cc8a6265962d2935be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Wed, 18 May 2011 16:34:17 +0200 Subject: Rename nullify() to safeClear(), and clear data. diff --git a/Swiften/Base/Algorithm.h b/Swiften/Base/Algorithm.h index 4694823..cd6f9dc 100644 --- a/Swiften/Base/Algorithm.h +++ b/Swiften/Base/Algorithm.h @@ -105,8 +105,9 @@ namespace Swift { } template<typename Container> - void nullify(Container& c) { + void safeClear(Container& c) { std::fill(c.begin(), c.end(), 0); + c.clear(); } /* -- cgit v0.10.2-6-g49f6