summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin
diff options
context:
space:
mode:
authorRobert Löhning <robert.loehning@qt.io>2021-12-21 12:42:43 +0100
committerRobert Löhning <robert.loehning@qt.io>2022-01-12 23:10:01 +0100
commit0bc7f94bd8949b89b75c2730a743a2bbf74a0c01 (patch)
tree33f046a1e5ab535956cd31823dade745fd2d9147 /src/corelib/plugin
parent90f0d522bf2c4a2d17fe04ccf342601222b5d4a5 (diff)
Q*Parser: Replace "data" with "contents" in strings
...to be clearer and avoid confusion with "data section". Change-Id: I13319be0e3e12aecf1e0e86c256007dfe6cb98c6 Pick-to: 6.3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin')
-rw-r--r--src/corelib/plugin/qcoffpeparser.cpp2
-rw-r--r--src/corelib/plugin/qelfparser_p.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qcoffpeparser.cpp b/src/corelib/plugin/qcoffpeparser.cpp
index 03eca7d2b6..4813a07b27 100644
--- a/src/corelib/plugin/qcoffpeparser.cpp
+++ b/src/corelib/plugin/qcoffpeparser.cpp
@@ -380,7 +380,7 @@ QLibraryScanResult QCoffPeParser::parse(QByteArrayView data, QString *errMsg)
size_t offset = section->PointerToRawData;
if (size_t end; qAddOverflow<size_t>(offset, section->SizeOfRawData, &end)
|| end > size_t(data.size()))
- return error(QLibrary::tr("a section data extends past the end of the file"));
+ return error(QLibrary::tr("section contents extend past the end of the file"));
DWORD type = section->Characteristics
& (IMAGE_SCN_CNT_CODE | IMAGE_SCN_CNT_INITIALIZED_DATA
diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp
index ed973e4323..c6ccda92fb 100644
--- a/src/corelib/plugin/qelfparser_p.cpp
+++ b/src/corelib/plugin/qelfparser_p.cpp
@@ -714,7 +714,7 @@ static QLibraryScanResult scanSections(QByteArrayView data, const ErrorMaker &er
continue;;
if (T::Off end; qAddOverflow(shdr->sh_offset, shdr->sh_size, &end)
|| end > size_t(data.size())) {
- return error(QLibrary::tr("a section data extends past the end of the file"));
+ return error(QLibrary::tr("section contents extend past the end of the file"));
}
if (name != QLatin1String(".qtmetadata"))