Remove the operator<< | >> (QDataStream, QStringList)
They aren't needed. The template version for QList in qdatastream.h is sufficient. This is binary compatible, since the functions were never exported. It's also source compatible, provided no one tried to do: QDataStream & (*fptr)(QDataStream &, QStringList &) = &operator>>; Change-Id: I8a4449b416154b34c007ef6abacf2b112451028f Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
41f7053b87
commit
3c9847a068
@ -516,28 +516,6 @@ QString QtPrivate::QStringList_join(const QStringList *that, const QChar *sep, i
|
||||
the latter string list.
|
||||
*/
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
/*!
|
||||
\fn QDataStream &operator>>(QDataStream &in, QStringList &list)
|
||||
\relates QStringList
|
||||
|
||||
Reads a string list from the given \a in stream into the specified
|
||||
\a list.
|
||||
|
||||
\sa {Serializing Qt Data Types}
|
||||
*/
|
||||
|
||||
/*!
|
||||
\fn QDataStream &operator<<(QDataStream &out, const QStringList &list)
|
||||
\relates QStringList
|
||||
|
||||
Writes the given string \a list to the specified \a out stream.
|
||||
|
||||
\sa {Serializing Qt Data Types}
|
||||
*/
|
||||
#endif // QT_NO_DATASTREAM
|
||||
|
||||
|
||||
#ifndef QT_NO_REGEXP
|
||||
static int indexOfMutating(const QStringList *that, QRegExp &rx, int from)
|
||||
{
|
||||
|
@ -238,17 +238,6 @@ inline int QStringList::lastIndexOf(const QRegularExpression &rx, int from) cons
|
||||
#endif // QT_NO_REGULAREXPRESSION
|
||||
#endif // QT_BOOTSTRAPPED
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
inline QDataStream &operator>>(QDataStream &in, QStringList &list)
|
||||
{
|
||||
return operator>>(in, static_cast<QList<QString> &>(list));
|
||||
}
|
||||
inline QDataStream &operator<<(QDataStream &out, const QStringList &list)
|
||||
{
|
||||
return operator<<(out, static_cast<const QList<QString> &>(list));
|
||||
}
|
||||
#endif // QT_NO_DATASTREAM
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSTRINGLIST_H
|
||||
|
Loading…
Reference in New Issue
Block a user