Remove const in declarations' arguments that are passed by value

This commit is contained in:
thalieht
2019-02-22 01:03:22 +02:00
parent 70f1537d9f
commit 8a19a0d4a0
11 changed files with 22 additions and 22 deletions

View File

@@ -40,6 +40,6 @@ namespace Utils
// Mimic QByteArray::mid(pos, len) but instead of returning a full-copy,
// we only return a partial view
const QByteArray midView(const QByteArray &in, const int pos, const int len = -1);
const QByteArray midView(const QByteArray &in, int pos, int len = -1);
}
}

View File

@@ -35,7 +35,7 @@ namespace Utils
{
namespace Random
{
uint32_t rand(const uint32_t min = 0, const uint32_t max = UINT32_MAX);
uint32_t rand(uint32_t min = 0, uint32_t max = UINT32_MAX);
}
}

View File

@@ -63,7 +63,7 @@ namespace Utils
return str;
}
bool parseBool(const QString &string, const bool defaultValue);
bool parseBool(const QString &string, bool defaultValue);
TriStateBool parseTriStateBool(const QString &string);
}
}