Skip to content
Snippets Groups Projects
Commit a39d0e6f authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen
Browse files

UnitTests: Fix printer


Fix recursion for QVariant printers.

Change-Id: I1473a94102d0f4446e8033f4c1828735614cdfa3
Reviewed-by: default avatarTim Jenssen <tim.jenssen@qt.io>
parent 2b467e8e
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ std::ostream &operator<<(std::ostream &out, const QByteArray &byteArray) ...@@ -49,6 +49,11 @@ std::ostream &operator<<(std::ostream &out, const QByteArray &byteArray)
return out; return out;
} }
std::ostream &operator<<(std::ostream &out, const QString &text)
{
return out << text.toUtf8();
}
std::ostream &operator<<(std::ostream &out, const QVariant &variant) std::ostream &operator<<(std::ostream &out, const QVariant &variant)
{ {
QString output; QString output;
...@@ -59,11 +64,6 @@ std::ostream &operator<<(std::ostream &out, const QVariant &variant) ...@@ -59,11 +64,6 @@ std::ostream &operator<<(std::ostream &out, const QVariant &variant)
return out << output; return out << output;
} }
std::ostream &operator<<(std::ostream &out, const QString &text)
{
return out << text.toUtf8();
}
std::ostream &operator<<(std::ostream &out, const QTextCharFormat &format) std::ostream &operator<<(std::ostream &out, const QTextCharFormat &format)
{ {
out << "(" out << "("
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment