summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp2
-rw-r--r--tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp b/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
index 5fbf009..ee72e2e 100644
--- a/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
+++ b/tests/auto/models/qfilesystemmodel/tst_qfilesystemmodel.cpp
@@ -141,7 +141,7 @@ tst_UiFileSystemModel::~tst_UiFileSystemModel()
QString tmp = flatDirTestPath;
QDir dir(tmp);
if (dir.exists() && !dir.rmdir(tmp))
- qWarning("failed to remove tmp dir %s", dir.dirName().toAscii().data());
+ qWarning("failed to remove tmp dir %s", dir.dirName().toLatin1().data());
}
void tst_UiFileSystemModel::init()
diff --git a/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp b/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
index 446782d..6bb7b6a 100644
--- a/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
+++ b/tests/auto/models/uitextfilemodel/tst_uitextfilemodel.cpp
@@ -80,7 +80,7 @@ void tst_UiTextFileModel::init()
text.append(", ");
}
}
- file.write(text.toAscii());
+ file.write(text.toLatin1());
file.flush();
file.close();
}