diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-03 20:13:49 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-03 20:13:49 (GMT) |
commit | 29ea1e8227b3e892e7124c8cd8b5f2b8be81a058 (patch) | |
tree | aaf1a0a05d6691789fa79de86fc7f152cc411424 /qtools/qtl.h | |
parent | 93f5398050245c427869d865fe04c43c907666d1 (diff) | |
download | Doxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.zip Doxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.tar.gz Doxygen-29ea1e8227b3e892e7124c8cd8b5f2b8be81a058.tar.bz2 |
Refactoring: replace QTextStream by ifstream
Diffstat (limited to 'qtools/qtl.h')
-rw-r--r-- | qtools/qtl.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/qtools/qtl.h b/qtools/qtl.h index bd72e7d..64825e9 100644 --- a/qtools/qtl.h +++ b/qtools/qtl.h @@ -1,5 +1,5 @@ /**************************************************************************** -** +** ** ** Definition of Qt template library classes ** @@ -38,34 +38,9 @@ #define QTL_H #ifndef QT_H -#include "qtextstream.h" #include "qstring.h" #endif // QT_H -#ifndef QT_NO_TEXTSTREAM -template <class T> -class QTextOStreamIterator -{ -protected: - QTextOStream& stream; - QString separator; - -public: - QTextOStreamIterator( QTextOStream& s) : stream( s ) {} - QTextOStreamIterator( QTextOStream& s, const QString& sep ) - : stream( s ), separator( sep ) {} - QTextOStreamIterator<T>& operator= ( const T& x ) { - stream << x; - if ( !separator.isEmpty() ) - stream << separator; - return *this; - } - QTextOStreamIterator<T>& operator*() { return *this; } - QTextOStreamIterator<T>& operator++() { return *this; } - QTextOStreamIterator<T>& operator++(int) { return *this; } -}; -#endif //QT_NO_TEXTSTREAM - template <class InputIterator, class OutputIterator> inline OutputIterator qCopy( InputIterator _begin, InputIterator _end, OutputIterator _dest ) |