mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-01 14:47:27 +02: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)
|
if (linestart<lastwdpos)
|
||||||
{
|
{
|
||||||
res.append(s.mid(linestart,lastwdpos-linestart));
|
res.append(s.midRef(linestart,lastwdpos-linestart));
|
||||||
linestart=lastwdpos;
|
linestart=lastwdpos;
|
||||||
pos=lastwdpos;
|
pos=lastwdpos;
|
||||||
|
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
res.append(s.mid(linestart,pos-linestart));
|
res.append(s.midRef(linestart,pos-linestart));
|
||||||
linestart=pos;
|
linestart=pos;
|
||||||
lastwdpos=pos;
|
lastwdpos=pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res.append(s.mid(linestart,pos-linestart));
|
res.append(s.midRef(linestart,pos-linestart));
|
||||||
while (++pos< s.length() && s.at(pos).isSpace()) ;
|
while (++pos< s.length() && s.at(pos).isSpace()) ;
|
||||||
if (pos<s.length())
|
if (pos<s.length())
|
||||||
{
|
{
|
||||||
@ -435,7 +435,7 @@ QString wordWrap(const QString& s, int maxchinline)
|
|||||||
chcount=0;
|
chcount=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res.append(s.mid(linestart,pos-linestart));
|
res.append(s.midRef(linestart,pos-linestart));
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user