diff options
Diffstat (limited to 'Swiften/Base/Algorithm.h')
| -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();  	}  	/*  | 
 Swift