rcc: micro-optimization
Declare a char array instead of a pointer variable. Change-Id: I2beff815d05b6dc9c35bb0a55d7294189afbf17e Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
ed7f78acba
commit
b1995f2c96
|
|
@ -687,7 +687,7 @@ bool RCCResourceLibrary::output(QIODevice &outDevice, QIODevice &errorDevice)
|
|||
|
||||
void RCCResourceLibrary::writeHex(quint8 tmp)
|
||||
{
|
||||
const char * const digits = "0123456789abcdef";
|
||||
const char digits[] = "0123456789abcdef";
|
||||
writeChar('0');
|
||||
writeChar('x');
|
||||
if (tmp < 16) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue