diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-20 08:22:15 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-20 10:36:50 (GMT) |
commit | 5fa19cbf945f43146f2b0e0f93da53fec27fd543 (patch) | |
tree | 9906406fc967f9510d647415ab7d4dbd24b67e1e /src/gui/kernel/qshortcutmap.cpp | |
parent | c7c7b364d9816d03c7475d6592d50dec5401c151 (diff) | |
download | Qt-5fa19cbf945f43146f2b0e0f93da53fec27fd543.zip Qt-5fa19cbf945f43146f2b0e0f93da53fec27fd543.tar.gz Qt-5fa19cbf945f43146f2b0e0f93da53fec27fd543.tar.bz2 |
Remove a few warnings when compiling Qt and unexport some functions.
Make some functions static that are not used anywhere but in the
current file. Others that are used, add the declaration to the _p.h to
ensure we don't forget about them.
Finally, there's no need to enable debugging code if it's not used
anywhere.
Reviewed-by: TrustMe
Diffstat (limited to 'src/gui/kernel/qshortcutmap.cpp')
-rw-r--r-- | src/gui/kernel/qshortcutmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qshortcutmap.cpp b/src/gui/kernel/qshortcutmap.cpp index c965bac..0027deb 100644 --- a/src/gui/kernel/qshortcutmap.cpp +++ b/src/gui/kernel/qshortcutmap.cpp @@ -99,11 +99,11 @@ struct QShortcutEntry QObject *owner; }; -#ifndef QT_NO_DEBUG_STREAM +#if 0 //ndef QT_NO_DEBUG_STREAM /*! \internal QDebug operator<< for easy debug output of the shortcut entries. */ -QDebug &operator<<(QDebug &dbg, const QShortcutEntry *se) { +static QDebug &operator<<(QDebug &dbg, const QShortcutEntry *se) { if (!se) return dbg << "QShortcutEntry(0x0)"; dbg.nospace() |