summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qshortcutmap.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-08-20 08:22:15 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-20 10:36:50 (GMT)
commit5fa19cbf945f43146f2b0e0f93da53fec27fd543 (patch)
tree9906406fc967f9510d647415ab7d4dbd24b67e1e /src/gui/kernel/qshortcutmap.cpp
parentc7c7b364d9816d03c7475d6592d50dec5401c151 (diff)
downloadQt-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.cpp4
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()