diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-18 14:34:17 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-05-18 14:34:17 (GMT) |
commit | b1b3b8f88517ad8b14795cc8a6265962d2935be3 (patch) | |
tree | 07bee558d25ee1b11f395fc14643563f5c06e931 /Swiften | |
parent | 23fa0f462ddd0c686c677bfe5d4d743621432b7e (diff) | |
download | swift-contrib-b1b3b8f88517ad8b14795cc8a6265962d2935be3.zip swift-contrib-b1b3b8f88517ad8b14795cc8a6265962d2935be3.tar.bz2 |
Rename nullify() to safeClear(), and clear data.
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Base/Algorithm.h | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } /* |