mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
static analyzer warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b217a9ca2b
commit
9308f2f3b0
1 changed files with 1 additions and 1 deletions
|
@ -1954,7 +1954,7 @@ QByteArray &QByteArray::replace(const char *c, const QByteArray &after)
|
||||||
|
|
||||||
QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize)
|
QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize)
|
||||||
{
|
{
|
||||||
if (isNull() || (before == after && bsize == asize))
|
if (isEmpty() || (before == after && bsize == asize))
|
||||||
return *this;
|
return *this;
|
||||||
|
|
||||||
QByteArrayMatcher matcher(before, bsize);
|
QByteArrayMatcher matcher(before, bsize);
|
||||||
|
|
Loading…
Add table
Reference in a new issue