Commit 364f41b9 authored by Lamarque Souza's avatar Lamarque Souza
Browse files

References to local variables are not safe to use after function return,

so we have better copy the value instead.

BUG: 226596, 258706, 269118, 268157, 258706, 226596, 268473, 269118, 268597, 268157, 268871, 268436, 268886, 268518, 269147, 267691, 268858, 268180, 268874
FIXED-IN: 4.6.2
parent 95953aec
......@@ -187,7 +187,8 @@ QString KIconEffect::fingerprint(int group, int state) const
cached += d->color2[group][state].name();
}
d->key[group][state] = cached;
// Using deep copy since cached is a local variable.
d->key[group][state] = QString(cached.data());
}
return cached;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment