From b3b77f1d4a85a9a933b1a913a90b57a0e2db42a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Wed, 9 Jun 2010 20:37:20 +0200 Subject: Fixed compilation warnings. diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct index f14fae6..a8c8529 100644 --- a/BuildTools/SCons/SConstruct +++ b/BuildTools/SCons/SConstruct @@ -110,7 +110,7 @@ if env["warnings"] : if env["PLATFORM"] == "win32" : env.Append(CCFLAGS = ["/Wall"]) else : - env.Append(CCFLAGS = ["-W", "-Wall", "-Wnon-virtual-dtor"]) + env.Append(CXXFLAGS = ["-W", "-Wall", "-Wnon-virtual-dtor"]) #env.Append(CCFLAGS = ["-W", "-Wall", "-Wredundant-decls", "-pedantic", "-Wno-long-long", "-Woverloaded-virtual", "-Wundef", "-Wfloat-equal", "-Wold-style-cast"]) gccVersion = env["CCVERSION"].split(".") if gccVersion >= ["4", "5", "0"] : diff --git a/Swift/Controllers/UIInterfaces/ChatListWindowFactory.h b/Swift/Controllers/UIInterfaces/ChatListWindowFactory.h index 7f1afe1..b920e43 100644 --- a/Swift/Controllers/UIInterfaces/ChatListWindowFactory.h +++ b/Swift/Controllers/UIInterfaces/ChatListWindowFactory.h @@ -12,6 +12,7 @@ namespace Swift { class UIEventStream; class ChatListWindowFactory { public: + virtual ~ChatListWindowFactory() {} virtual ChatListWindow* createWindow(UIEventStream* uiEventStream) = 0; }; } diff --git a/Swift/QtUI/ChatList/ChatListItem.h b/Swift/QtUI/ChatList/ChatListItem.h index b919c6b..57a85da 100644 --- a/Swift/QtUI/ChatList/ChatListItem.h +++ b/Swift/QtUI/ChatList/ChatListItem.h @@ -13,8 +13,11 @@ namespace Swift { class ChatListItem { public: ChatListItem(ChatListGroupItem* parent) {parent_ = parent;}; + virtual ~ChatListItem() {} + ChatListGroupItem* parent() {return parent_;}; virtual QVariant data(int role) = 0; + private: ChatListGroupItem* parent_; }; -- cgit v0.10.2-6-g49f6