summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPekka Vuorela <pvuorela@iki.fi>2025-11-19 16:05:27 +0200
committerPekka Vuorela <pvuorela@iki.fi>2025-11-20 19:42:06 +0200
commit23d83bf411ef208140588afe86dedded8802608f (patch)
treeca8867467abcc3ab9a43f22593704154a05f365a /tests
parent3dcb14587ce0f84f3cb89f59111176aa5f798cc1 (diff)
Make LongString construction more explicit
Strange API when bytearray parameter on ctor use the content but QString opens a file. Neither were even 'explicit'. Added 'explicit' and made the file opening use even more explicit static method. Change-Id: I41c6f91eba2adcc93aa534e1d4edff5f9fa9f907 Reviewed-by: Damien Caliste <dcaliste@free.fr> Reviewed-by: <matti.viljanen@kapsi.fi> Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/tst_python_email/tst_python_email.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tst_python_email/tst_python_email.cpp b/tests/tst_python_email/tst_python_email.cpp
index 3f0e9fee..63ba6640 100644
--- a/tests/tst_python_email/tst_python_email.cpp
+++ b/tests/tst_python_email/tst_python_email.cpp
@@ -184,7 +184,7 @@ QMailMessage tst_python_email::fromFile(const QString& filename)
QByteArray tst_python_email::fileData(const QString& filename)
{
- LongString ls(QFINDTESTDATA(filename));
+ LongString ls = LongString::fromFile(QFINDTESTDATA(filename));
QByteArray ba(ls.toQByteArray());
return QByteArray(ba.constData(), ba.length());
}