1 /* vi: set sw=4 ts=4:
2  *
3  * Copyright (C) 2012 Christian Hohnstaedt.
4  *
5  * All rights reserved.
6  */
7 
8 #include <QByteArray>
9 #include "Passwd.h"
10 
cleanse()11 void Passwd::cleanse()
12 {
13 	memset(data(), 0, size());
14 	clear();
15 }
16 
~Passwd()17 Passwd::~Passwd()
18 {
19 	Passwd::cleanse();
20 }
constUchar() const21 unsigned char *Passwd::constUchar() const
22 {
23 	return (unsigned char *)(size() ? constData() : "");
24 }
25