forked from qt-creator/qt-creator
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:
@@ -367,11 +367,11 @@ void NodeInstanceClientProxy::startNanotrace(const StartNanotraceCommand &comman
|
|||||||
std::string fullFilePath =
|
std::string fullFilePath =
|
||||||
directory + std::string("/nanotrace_qmlpuppet_") + processName + std::string(".json");
|
directory + std::string("/nanotrace_qmlpuppet_") + processName + std::string(".json");
|
||||||
|
|
||||||
for (size_t i=0; i<processName.length(); ++i) {
|
for (int i=0; i<name.length(); ++i) {
|
||||||
if (i==0 || processName[i]=='m')
|
if (i==0 || name[i]=='m')
|
||||||
processName[i] = std::toupper(processName[i]);
|
name[i] = name.at(i).toUpper();
|
||||||
}
|
}
|
||||||
processName = processName + std::string("Puppet");
|
processName = name.toStdString() + std::string("Puppet");
|
||||||
|
|
||||||
NANOTRACE_INIT(processName.c_str(), "MainThread", fullFilePath);
|
NANOTRACE_INIT(processName.c_str(), "MainThread", fullFilePath);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user