Use QString::toUpper instead of std::toupper

Change-Id: I83fd40b9ac2ec8d47078c226390f5b352d4bf9bb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Knud Dollereder
2023-03-22 16:07:52 +01:00
parent 47547e0c0c
commit 2da5e04ef7

View File

@@ -367,11 +367,11 @@ void NodeInstanceClientProxy::startNanotrace(const StartNanotraceCommand &comman
std::string fullFilePath =
directory + std::string("/nanotrace_qmlpuppet_") + processName + std::string(".json");
for (size_t i=0; i<processName.length(); ++i) {
if (i==0 || processName[i]=='m')
processName[i] = std::toupper(processName[i]);
for (int i=0; i<name.length(); ++i) {
if (i==0 || name[i]=='m')
name[i] = name.at(i).toUpper();
}
processName = processName + std::string("Puppet");
processName = name.toStdString() + std::string("Puppet");
NANOTRACE_INIT(processName.c_str(), "MainThread", fullFilePath);