xca/lib/Passwd.cpp
Christian Hohnstaedt e5541c6d67 SF. Bug. #81 Make xca qt5 compatible
Extend XCA to also compile against Qt5
Remove directory from Qt includes
2015-09-17 18:42:42 +02:00

25 lines
343 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2012 Christian Hohnstaedt.
*
* All rights reserved.
*/
#include <QByteArray>
#include "Passwd.h"
void Passwd::cleanse()
{
memset(data(), 0, size());
}
Passwd::~Passwd()
{
Passwd::cleanse();
}
unsigned char *Passwd::constUchar() const
{
return (unsigned char *)(size() ? constData() : "");
}