QTemporaryFile: fix narrowing conversion warnings
- Don't use unsigned to avoid negative values (if an unsigned variable is assigned a negative value it'll wrap around and become a huge positive value, which is usually not what's required) Change-Id: I5d41280b9ca14c15727f9f2447ed50573b187931 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
94a01cd6ec
commit
db797d19a3
@ -45,8 +45,8 @@ QTemporaryFileName::QTemporaryFileName(const QString &templateName)
|
|||||||
{
|
{
|
||||||
// Ensure there is a placeholder mask
|
// Ensure there is a placeholder mask
|
||||||
QString qfilename = QDir::fromNativeSeparators(templateName);
|
QString qfilename = QDir::fromNativeSeparators(templateName);
|
||||||
uint phPos = qfilename.size();
|
qsizetype phPos = qfilename.size();
|
||||||
uint phLength = 0;
|
qsizetype phLength = 0;
|
||||||
|
|
||||||
while (phPos != 0) {
|
while (phPos != 0) {
|
||||||
--phPos;
|
--phPos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user