Changeset 412 for trunk/src


Ignore:
Timestamp:
Dec 10, 2009, 10:30:10 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Made it build using GCC4 and fixed a couple warnings.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/3rdparty/freetype/include/freetype/config/ftheader.h

    r395 r412  
    171171   *
    172172   */
    173 #if defined(__OS2__) && defined(__GNUC__)
    174 # if __GNUC__ == 3 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ == 5
     173#if defined(__OS2__) && defined(__GNUC__)
     174 __GNUC__ == 3 && __GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ == 5
    175175    // GCC for OS/2 version 3.3.5 CSD3 doesn't like the style of the
    176176    // comments in the ../3rdparty/freetype/include/freetype/freetype.h file
     
    181181    // Until we upgrade GCC to a version that is free of it, we use this sed'ed
    182182    // header as a temporary workaround.
    183 #  define FT_FREETYPE_H  <freetype/freetype.os2-g++.h>
    184 # else
    185     // On a newer compiler that works, we should completely remove any traces of
    186     // this workaround from this file
    187 #  error "Please check the comment above this line!"
    188 # endif
     183# define FT_FREETYPE_H  <freetype/freetype.os2-g++.h>
    189184#else
    190185#define FT_FREETYPE_H  <freetype/freetype.h>
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r387 r412  
    111111extern void qt_WinQueryClipRegionOrRect(HWND hwnd, HRGN hrgn); // qwidget_pm.cpp
    112112
     113
     114
    113115extern QRegion qt_dirtyRegion(QWidget *); // qbackingstore.cpp
    114116
     
    156158}
    157159
    158 static QFont qt_sysfont2qfont(const PSZ scope)
     160static QFont qt_sysfont2qfont(SZ scope)
    159161{
    160162    // note: 10.System Proportional is de-facto the default font selected into
    161163    // the presentation space
    162164
    163     static const PSZ app = "PM_SystemFonts";
    164     static const PSZ def = "10.System Proportional";
     165    static SZ app = "PM_SystemFonts";
     166    static SZ def = "10.System Proportional";
    165167
    166168    ULONG keyLen = 0;
    167     QFont f("System Proportional", 10);
     169    QFont f(, 10);
    168170
    169171    if (PrfQueryProfileSize(HINI_USERPROFILE, app, scope, &keyLen) && keyLen) {
     
    13211323                WinSetPointer(HWND_DESKTOP, QCursor(Qt::ArrowCursor).handle());
    13221324#endif // QT_NO_CURSOR
    1323         } else if (type == WM_BUTTON1DOWN || type == type == WM_BUTTON2DOWN ||
     1325        } else if (type == WM_BUTTON1DOWN || type == WM_BUTTON2DOWN ||
    13241326                   type == WM_BUTTON3DOWN) {
    13251327            if (!top->isActiveWindow()) {
     
    23082310                    repeat, scan, ch, (ch > 32 && ch < 254) ?
    23092311                    qPrintable(QString::fromLocal8Bit((char *)&ch, 1)) :
    2310                     qPrintable(QString(QChar(' '))), vk);
     2312                    qPrintable(QString(QChar())), vk);
    23112313        QString flstr;
    23122314        myDefFlagEx(fl, KC_CHAR, flstr, "CHAR");
  • trunk/src/gui/kernel/qclipboard_pm.cpp

    r345 r412  
    6868
    6969QT_BEGIN_NAMESPACE
     70
     71
    7072
    7173////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.