diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-06 11:09:27 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-06 14:53:57 (GMT) |
commit | 8cd1773d49fc86e57e37a2b146dad1ef96105b04 (patch) | |
tree | 575adfa67743acb7c80bb7f9b94ee0893a1ca8fe /src/gui/painting | |
parent | 6af3db7e24527731124ad1233f926bc8d1c890b3 (diff) | |
download | Qt-8cd1773d49fc86e57e37a2b146dad1ef96105b04.zip Qt-8cd1773d49fc86e57e37a2b146dad1ef96105b04.tar.gz Qt-8cd1773d49fc86e57e37a2b146dad1ef96105b04.tar.bz2 |
Fix compilation in C++0x mode (narrowing of constants)
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qprintengine_pdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprintengine_pdf.cpp b/src/gui/painting/qprintengine_pdf.cpp index 0a747e7..2955e39 100644 --- a/src/gui/painting/qprintengine_pdf.cpp +++ b/src/gui/painting/qprintengine_pdf.cpp @@ -1225,7 +1225,7 @@ void QPdfEnginePrivate::printString(const QString &string) { const ushort *utf16 = string.utf16(); for (int i=0; i < string.size(); ++i) { - char part[2] = {(*(utf16 + i)) >> 8, (*(utf16 + i)) & 0xff}; + char part[2] = {char((*(utf16 + i)) >> 8), char((*(utf16 + i)) & 0xff)}; for(int j=0; j < 2; ++j) { if (part[j] == '(' || part[j] == ')' || part[j] == '\\') array.append('\\'); |