Remove deprecated base64::encode(QVariant) version
This commit is contained in:
@@ -47,8 +47,6 @@ namespace base64
|
||||
*_data = new T[*_size / sizeof(T)];
|
||||
memcpy( *_data, data.constData(), *_size );
|
||||
}
|
||||
// deprecated!!
|
||||
QString encode( const QVariant & _data );
|
||||
// for compatibility-code only
|
||||
QVariant decode( const QString & _b64,
|
||||
QVariant::Type _force_type = QVariant::Invalid );
|
||||
|
||||
@@ -35,21 +35,6 @@ namespace base64
|
||||
{
|
||||
|
||||
|
||||
QString encode( const QVariant & _data )
|
||||
{
|
||||
QBuffer buf;
|
||||
buf.open( QBuffer::WriteOnly );
|
||||
QDataStream out( &buf );
|
||||
out << _data;
|
||||
QByteArray data = buf.buffer();
|
||||
QString dst;
|
||||
encode( data.constData(), data.size(), dst );
|
||||
return( dst );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
QVariant decode( const QString & _b64, QVariant::Type _force_type )
|
||||
{
|
||||
char * dst = NULL;
|
||||
|
||||
Reference in New Issue
Block a user