mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Fixed warnings.
This commit is contained in:
@@ -903,8 +903,9 @@ void lcQPreferencesDialog::updateCommandList()
|
||||
|
||||
const QString identifier = tr(gCommands[actionIdx].ID);
|
||||
|
||||
int pos = identifier.indexOf(QLatin1Char('.'));
|
||||
int subPos = identifier.indexOf(QLatin1Char('.'), pos + 1);
|
||||
qsizetype pos = identifier.indexOf(QLatin1Char('.'));
|
||||
qsizetype subPos = identifier.indexOf(QLatin1Char('.'), pos + 1);
|
||||
|
||||
if (subPos == -1)
|
||||
subPos = pos;
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
QString lcFormatValue(float Value, int Precision)
|
||||
{
|
||||
QString String = QString::number(Value, 'f', Precision);
|
||||
const int Dot = String.indexOf('.');
|
||||
const qsizetype Dot = String.indexOf('.');
|
||||
|
||||
if (Dot != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user