diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-08 20:45:40 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-08 20:45:40 +0000 |
commit | 0a107b357c4d8a58085f46a98af51d7414ab6c76 (patch) | |
tree | 1d99b712a4d425c9a833b1cb68d90c1dfa3bcbc6 /webkit/port | |
parent | 2964020f490c8ccd2fa24151ca68b8b90fc1296e (diff) | |
download | chromium_src-0a107b357c4d8a58085f46a98af51d7414ab6c76.zip chromium_src-0a107b357c4d8a58085f46a98af51d7414ab6c76.tar.gz chromium_src-0a107b357c4d8a58085f46a98af51d7414ab6c76.tar.bz2 |
fix build issue on Linux with GCC 4.1.2
related to non-virtual destructors in classes having virtual methods
BUG=1859
Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/history/BackForwardList.h | 1 | ||||
-rw-r--r-- | webkit/port/platform/WidgetClientWin.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/webkit/port/history/BackForwardList.h b/webkit/port/history/BackForwardList.h index 6eca334..ec54818 100644 --- a/webkit/port/history/BackForwardList.h +++ b/webkit/port/history/BackForwardList.h @@ -57,6 +57,7 @@ typedef HashSet<RefPtr<HistoryItem> > HistoryItemHashSet; // back-forward list. class BackForwardListClient { public: + virtual ~BackForwardListClient() {} virtual void didAddHistoryItem(HistoryItem* item) = 0; virtual void willGoToHistoryItem(HistoryItem* item) = 0; virtual HistoryItem* itemAtIndex(int index) = 0; diff --git a/webkit/port/platform/WidgetClientWin.h b/webkit/port/platform/WidgetClientWin.h index 50b9445..40355cc 100644 --- a/webkit/port/platform/WidgetClientWin.h +++ b/webkit/port/platform/WidgetClientWin.h @@ -19,6 +19,8 @@ class Range; // Generic interface for features needed by the Widget. class WidgetClientWin : public WidgetClient { public: + virtual ~WidgetClientWin() {} + // Returns the containing window for the Widget. // TODO(pinkerton): this needs a better name, "window" is incorrect on other // platforms. @@ -68,4 +70,3 @@ public: } // namespace WebCore #endif // WidgetClientWin_H__ - |