Remove unused QT_NO_TEXTSTREAM.
It was checked in a few places, but it didn't actually remove QTextStream, so it was pretty useless. Change-Id: I8eaf28893cd6c7acbe1c0b69d58de90742aee755 Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
parent
aa4c2bbce9
commit
f65a10b733
@ -104,9 +104,6 @@
|
|||||||
#ifndef QT_NO_TEMPORARYFILE
|
#ifndef QT_NO_TEMPORARYFILE
|
||||||
# define QT_NO_TEMPORARYFILE
|
# define QT_NO_TEMPORARYFILE
|
||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
|
||||||
# define QT_NO_TEXTSTREAM
|
|
||||||
#endif
|
|
||||||
#ifndef QT_NO_SETTINGS
|
#ifndef QT_NO_SETTINGS
|
||||||
# define QT_NO_SETTINGS
|
# define QT_NO_SETTINGS
|
||||||
#endif
|
#endif
|
||||||
|
@ -77,9 +77,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* File I/O */
|
/* File I/O */
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
|
||||||
# define QT_NO_TEXTSTREAM
|
|
||||||
#endif
|
|
||||||
#ifndef QT_NO_SETTINGS
|
#ifndef QT_NO_SETTINGS
|
||||||
# define QT_NO_SETTINGS
|
# define QT_NO_SETTINGS
|
||||||
#endif
|
#endif
|
||||||
|
@ -289,9 +289,6 @@
|
|||||||
// HtmlParser
|
// HtmlParser
|
||||||
//#define QT_NO_TEXTHTMLPARSER
|
//#define QT_NO_TEXTHTMLPARSER
|
||||||
|
|
||||||
// QTextStream
|
|
||||||
//#define QT_NO_TEXTSTREAM
|
|
||||||
|
|
||||||
// QToolTip
|
// QToolTip
|
||||||
//#define QT_NO_TOOLTIP
|
//#define QT_NO_TOOLTIP
|
||||||
|
|
||||||
@ -351,16 +348,6 @@
|
|||||||
#define QT_NO_FILESYSTEMMODEL
|
#define QT_NO_FILESYSTEMMODEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// QHostInfo
|
|
||||||
#if !defined(QT_NO_HOSTINFO) && (defined(QT_NO_TEXTSTREAM))
|
|
||||||
#define QT_NO_HOSTINFO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// XPM Image Format
|
|
||||||
#if !defined(QT_NO_IMAGEFORMAT_XPM) && (defined(QT_NO_TEXTSTREAM))
|
|
||||||
#define QT_NO_IMAGEFORMAT_XPM
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// QLibrary
|
// QLibrary
|
||||||
#if !defined(QT_NO_LIBRARY) && (defined(QT_NO_SETTINGS))
|
#if !defined(QT_NO_LIBRARY) && (defined(QT_NO_SETTINGS))
|
||||||
#define QT_NO_LIBRARY
|
#define QT_NO_LIBRARY
|
||||||
@ -597,7 +584,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// QPrinter
|
// QPrinter
|
||||||
#if !defined(QT_NO_PRINTER) && (defined(QT_NO_TEXTSTREAM) || defined(QT_NO_PICTURE) || defined(QT_NO_TEMPORARYFILE))
|
#if !defined(QT_NO_PRINTER) && (defined(QT_NO_PICTURE) || defined(QT_NO_TEMPORARYFILE))
|
||||||
#define QT_NO_PRINTER
|
#define QT_NO_PRINTER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -192,13 +192,6 @@ Requires:
|
|||||||
Name: QProcess
|
Name: QProcess
|
||||||
SeeAlso: ???
|
SeeAlso: ???
|
||||||
|
|
||||||
Feature: TEXTSTREAM
|
|
||||||
Description: Supports reading and writing of text.
|
|
||||||
Section: File I/O
|
|
||||||
Requires:
|
|
||||||
Name: QTextStream
|
|
||||||
SeeAlso: ???
|
|
||||||
|
|
||||||
Feature: TEMPORARYFILE
|
Feature: TEMPORARYFILE
|
||||||
Description: Provides an I/O device that operates on temporary files.
|
Description: Provides an I/O device that operates on temporary files.
|
||||||
Section: File I/O
|
Section: File I/O
|
||||||
|
@ -129,10 +129,8 @@ public:
|
|||||||
inline QNoDebug(){}
|
inline QNoDebug(){}
|
||||||
inline QNoDebug(const QDebug &){}
|
inline QNoDebug(const QDebug &){}
|
||||||
inline ~QNoDebug(){}
|
inline ~QNoDebug(){}
|
||||||
#if !defined( QT_NO_TEXTSTREAM )
|
|
||||||
inline QNoDebug &operator<<(QTextStreamFunction) { return *this; }
|
inline QNoDebug &operator<<(QTextStreamFunction) { return *this; }
|
||||||
inline QNoDebug &operator<<(QTextStreamManipulator) { return *this; }
|
inline QNoDebug &operator<<(QTextStreamManipulator) { return *this; }
|
||||||
#endif
|
|
||||||
inline QNoDebug &space() { return *this; }
|
inline QNoDebug &space() { return *this; }
|
||||||
inline QNoDebug &nospace() { return *this; }
|
inline QNoDebug &nospace() { return *this; }
|
||||||
inline QNoDebug &maybeSpace() { return *this; }
|
inline QNoDebug &maybeSpace() { return *this; }
|
||||||
|
@ -1177,7 +1177,7 @@ QDebug operator<<(QDebug debug, const QSslCertificate &certificate)
|
|||||||
<< ',' << certificate.issuerInfo(QSslCertificate::Organization)
|
<< ',' << certificate.issuerInfo(QSslCertificate::Organization)
|
||||||
<< ',' << certificate.subjectInfo(QSslCertificate::Organization)
|
<< ',' << certificate.subjectInfo(QSslCertificate::Organization)
|
||||||
<< ',' << certificate.subjectAlternativeNames()
|
<< ',' << certificate.subjectAlternativeNames()
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
#ifndef QT_NO_DATESTRING
|
||||||
<< ',' << certificate.effectiveDate()
|
<< ',' << certificate.effectiveDate()
|
||||||
<< ',' << certificate.expiryDate()
|
<< ',' << certificate.expiryDate()
|
||||||
#endif
|
#endif
|
||||||
|
@ -19,7 +19,6 @@ DEFINES += \
|
|||||||
QT_NO_QOBJECT \
|
QT_NO_QOBJECT \
|
||||||
QT_NO_STL \
|
QT_NO_STL \
|
||||||
QT_NO_SYSTEMLOCALE \
|
QT_NO_SYSTEMLOCALE \
|
||||||
QT_NO_TEXTSTREAM \
|
|
||||||
QT_NO_THREAD \
|
QT_NO_THREAD \
|
||||||
QT_NO_UNICODETABLES \
|
QT_NO_UNICODETABLES \
|
||||||
QT_NO_USING_NAMESPACE \
|
QT_NO_USING_NAMESPACE \
|
||||||
|
@ -22,7 +22,6 @@ DEFINES += \
|
|||||||
QT_NO_QOBJECT \
|
QT_NO_QOBJECT \
|
||||||
QT_NO_STL \
|
QT_NO_STL \
|
||||||
QT_NO_SYSTEMLOCALE \
|
QT_NO_SYSTEMLOCALE \
|
||||||
QT_NO_TEXTSTREAM \
|
|
||||||
QT_NO_THREAD \
|
QT_NO_THREAD \
|
||||||
QT_NO_UNICODETABLES \
|
QT_NO_UNICODETABLES \
|
||||||
QT_NO_USING_NAMESPACE \
|
QT_NO_USING_NAMESPACE \
|
||||||
|
@ -1675,7 +1675,6 @@ void QSplitter::setStretchFactor(int index, int stretch)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
|
||||||
/*!
|
/*!
|
||||||
\relates QSplitter
|
\relates QSplitter
|
||||||
\obsolete
|
\obsolete
|
||||||
@ -1706,7 +1705,6 @@ QTextStream& operator>>(QTextStream& ts, QSplitter& splitter)
|
|||||||
splitter.restoreState(line.toAscii());
|
splitter.restoreState(line.toAscii());
|
||||||
return ts;
|
return ts;
|
||||||
}
|
}
|
||||||
#endif // QT_NO_TEXTSTREAM
|
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
@ -133,10 +133,8 @@ private:
|
|||||||
friend class QSplitterHandle;
|
friend class QSplitterHandle;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
|
||||||
Q_WIDGETS_EXPORT QTextStream& operator<<(QTextStream&, const QSplitter&);
|
Q_WIDGETS_EXPORT QTextStream& operator<<(QTextStream&, const QSplitter&);
|
||||||
Q_WIDGETS_EXPORT QTextStream& operator>>(QTextStream&, QSplitter&);
|
Q_WIDGETS_EXPORT QTextStream& operator>>(QTextStream&, QSplitter&);
|
||||||
#endif
|
|
||||||
|
|
||||||
class QSplitterHandlePrivate;
|
class QSplitterHandlePrivate;
|
||||||
class Q_WIDGETS_EXPORT QSplitterHandle : public QWidget
|
class Q_WIDGETS_EXPORT QSplitterHandle : public QWidget
|
||||||
|
@ -200,10 +200,8 @@ void tst_QSslCertificate::emptyConstructor()
|
|||||||
QCOMPARE(certificate.issuerInfo(QSslCertificate::Organization), QStringList());
|
QCOMPARE(certificate.issuerInfo(QSslCertificate::Organization), QStringList());
|
||||||
QCOMPARE(certificate.subjectInfo(QSslCertificate::Organization), QStringList());
|
QCOMPARE(certificate.subjectInfo(QSslCertificate::Organization), QStringList());
|
||||||
QCOMPARE(certificate.subjectAlternativeNames(),(QMultiMap<QSsl::AlternativeNameEntryType, QString>()));
|
QCOMPARE(certificate.subjectAlternativeNames(),(QMultiMap<QSsl::AlternativeNameEntryType, QString>()));
|
||||||
#ifndef QT_NO_TEXTSTREAM
|
|
||||||
QCOMPARE(certificate.effectiveDate(), QDateTime());
|
QCOMPARE(certificate.effectiveDate(), QDateTime());
|
||||||
QCOMPARE(certificate.expiryDate(), QDateTime());
|
QCOMPARE(certificate.expiryDate(), QDateTime());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QSsl::EncodingFormat);
|
Q_DECLARE_METATYPE(QSsl::EncodingFormat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user