mirror of
https://github.com/fwbuilder/fwbuilder
synced 2025-01-18 12:27:16 +01:00
fix: clazy qstring-ref
This commit is contained in:
parent
5db87b85ad
commit
416a4683e2
@ -406,20 +406,20 @@ QString wordWrap(const QString& s, int maxchinline)
|
||||
{
|
||||
if (linestart<lastwdpos)
|
||||
{
|
||||
res.append(s.mid(linestart,lastwdpos-linestart));
|
||||
res.append(s.midRef(linestart,lastwdpos-linestart));
|
||||
linestart=lastwdpos;
|
||||
pos=lastwdpos;
|
||||
|
||||
}else
|
||||
{
|
||||
res.append(s.mid(linestart,pos-linestart));
|
||||
res.append(s.midRef(linestart,pos-linestart));
|
||||
linestart=pos;
|
||||
lastwdpos=pos;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
res.append(s.mid(linestart,pos-linestart));
|
||||
res.append(s.midRef(linestart,pos-linestart));
|
||||
while (++pos< s.length() && s.at(pos).isSpace()) ;
|
||||
if (pos<s.length())
|
||||
{
|
||||
@ -435,7 +435,7 @@ QString wordWrap(const QString& s, int maxchinline)
|
||||
chcount=0;
|
||||
}
|
||||
}
|
||||
res.append(s.mid(linestart,pos-linestart));
|
||||
res.append(s.midRef(linestart,pos-linestart));
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user