quint32 curfmt = (quint32)None;
int pos = 0; quint16 length = 0;
for(;;) {
- int pos = s.indexOf('%', pos);
+ pos = s.indexOf('%', pos);
if(pos < 0) break;
if(s[pos+1] == '%') { // escaped %, we just remove one and continue
s.remove(pos, 1);
return result;
}
-QString UiStyle::mircToInternal(const QString &mirc_) {
+QString UiStyle::mircToInternal(const QString &mirc_) const {
QString mirc = mirc_;
mirc.replace('%', "%%"); // escape % just to be sure
mirc.replace('\x02', "%B");