From e397d147676925e2ae29ef4c312e4452d9666704 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 4 Dec 2006 21:31:02 +0100 Subject: [PATCH] Silence two warnings. - A signed/unsigned comparison in dbgmainwnd.cpp. - Work around the missing virtual destructor of Qt3's QToolTip. --- kdbg/dbgmainwnd.cpp | 2 +- kdbg/winstack.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kdbg/dbgmainwnd.cpp b/kdbg/dbgmainwnd.cpp index ad5e8c6..356b689 100644 --- a/kdbg/dbgmainwnd.cpp +++ b/kdbg/dbgmainwnd.cpp @@ -414,7 +414,7 @@ void DebuggerMainWnd::restoreSettings(KConfig* config) { i18n("Output"), m_ttyWindow }, { i18n("Memory"), m_memoryWindow } }; - for (int i = 0; i < sizeof(dw)/sizeof(dw[0]); i++) + for (int i = 0; i < int(sizeof(dw)/sizeof(dw[0])); i++) { KDockWidget* w = dockParent(dw[i].w); w->setTabPageLabel(dw[i].text); diff --git a/kdbg/winstack.h b/kdbg/winstack.h index 15d76c0..763c843 100644 --- a/kdbg/winstack.h +++ b/kdbg/winstack.h @@ -54,6 +54,7 @@ class ValueTip : public QToolTip { public: ValueTip(WinStack* parent); + virtual ~ValueTip() {} // Qt3's QToolTip lacks virtual dtor! virtual void maybeTip(const QPoint& p); void tip(const QRect& r, const QString& s) { QToolTip::tip(r, s); } }; -- 2.11.4.GIT