diff --git a/src/libs/sqlite/utf8stringvector.h b/src/libs/sqlite/utf8stringvector.h index 7d77e283d01..b63c8f51b36 100644 --- a/src/libs/sqlite/utf8stringvector.h +++ b/src/libs/sqlite/utf8stringvector.h @@ -28,6 +28,7 @@ #include "sqliteglobal.h" #include "utf8string.h" +#include #include class SQLITE_EXPORT Utf8StringVector : public QVector @@ -63,6 +64,11 @@ bool Utf8StringVector::removeFast(const Utf8String &valueToBeRemoved) return hasEntry; } +inline QDataStream &operator<<(QDataStream &s, const Utf8StringVector &v) +{ return s << static_cast &>(v); } + +inline QDataStream &operator>>(QDataStream &s, Utf8StringVector &v) +{ return s >> static_cast &>(v); } SQLITE_EXPORT QDebug operator<<(QDebug debug, const Utf8StringVector &textVector); SQLITE_EXPORT void PrintTo(const Utf8StringVector &textVector, ::std::ostream* os);