summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-18 14:34:17 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-18 14:34:17 (GMT)
commitb1b3b8f88517ad8b14795cc8a6265962d2935be3 (patch)
tree07bee558d25ee1b11f395fc14643563f5c06e931
parent23fa0f462ddd0c686c677bfe5d4d743621432b7e (diff)
downloadswift-b1b3b8f88517ad8b14795cc8a6265962d2935be3.zip
swift-b1b3b8f88517ad8b14795cc8a6265962d2935be3.tar.bz2
Rename nullify() to safeClear(), and clear data.
-rw-r--r--Swiften/Base/Algorithm.h3
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();
}
/*