Merge the makeEncoder/Decoder overloads.
Change-Id: I9fdeeafe08dd70c0ab9ce26a2fce3b8d803ca280 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
parent
6bf72a98ac
commit
1d7db25bd6
@ -1283,17 +1283,6 @@ QList<QByteArray> QTextCodec::aliases() const
|
||||
adjust the remainingChars and invalidChars members of the struct.
|
||||
*/
|
||||
|
||||
/*!
|
||||
Creates a QTextDecoder which stores enough state to decode chunks
|
||||
of \c{char *} data to create chunks of Unicode data.
|
||||
|
||||
The caller is responsible for deleting the returned object.
|
||||
*/
|
||||
QTextDecoder* QTextCodec::makeDecoder() const
|
||||
{
|
||||
return new QTextDecoder(this);
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a QTextDecoder with a specified \a flags to decode chunks
|
||||
of \c{char *} data to create chunks of Unicode data.
|
||||
@ -1307,18 +1296,6 @@ QTextDecoder* QTextCodec::makeDecoder(QTextCodec::ConversionFlags flags) const
|
||||
return new QTextDecoder(this, flags);
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Creates a QTextEncoder which stores enough state to encode chunks
|
||||
of Unicode data as \c{char *} data.
|
||||
|
||||
The caller is responsible for deleting the returned object.
|
||||
*/
|
||||
QTextEncoder* QTextCodec::makeEncoder() const
|
||||
{
|
||||
return new QTextEncoder(this);
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a QTextEncoder with a specified \a flags to encode chunks
|
||||
of Unicode data as \c{char *} data.
|
||||
|
@ -117,11 +117,8 @@ public:
|
||||
QByteArray fromUnicode(const QChar *in, int length, ConverterState *state = 0) const
|
||||
{ return convertFromUnicode(in, length, state); }
|
||||
|
||||
// ### Qt 5: merge these functions.
|
||||
QTextDecoder* makeDecoder() const;
|
||||
QTextDecoder* makeDecoder(ConversionFlags flags) const;
|
||||
QTextEncoder* makeEncoder() const;
|
||||
QTextEncoder* makeEncoder(ConversionFlags flags) const;
|
||||
QTextDecoder* makeDecoder(ConversionFlags flags = DefaultConversion) const;
|
||||
QTextEncoder* makeEncoder(ConversionFlags flags = DefaultConversion) const;
|
||||
|
||||
virtual QByteArray name() const = 0;
|
||||
virtual QList<QByteArray> aliases() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user