[gnote] Fix a couple of warnings popped by gcc 3.4



commit cffbe0bf885618e8112d55e7043a101c2c71c846
Author: Hubert Figuiere <hub figuiere net>
Date:   Sat Jun 6 03:22:31 2009 -0400

    Fix a couple of warnings popped by gcc 3.4
---
 NEWS         |    5 ++---
 src/note.hpp |    2 +-
 src/undo.hpp |    3 ++-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index fc25395..16f241e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,3 @@
-  * Replace the regex support from Boost.Regex with PCRE.
-  * WikiWord now support non ASCII (Closes #581495)
-
 0.5.0 -
 
 New features:
@@ -18,6 +15,8 @@ Fixes:
   * Update boost.m4 to latest version. (Closes #581559) (Priit Laes)
   * Fix bug in URL parsing causing file link when not appropriate.
     (Closes #581506)
+  * Replace the regex support from Boost.Regex with PCRE.
+  * WikiWord now support non ASCII (Closes #581495)
   * Allow using Boost TR1 implementation if really needed.
 
 Translations:
diff --git a/src/note.hpp b/src/note.hpp
index ef11cc7..d485d4a 100644
--- a/src/note.hpp
+++ b/src/note.hpp
@@ -197,7 +197,7 @@ public:
   bool is_new() const;
   bool is_loaded() const
     {
-      return (m_buffer != NULL);
+      return (m_buffer);
     }
   bool is_opened() const
     { 
diff --git a/src/undo.hpp b/src/undo.hpp
index f44f539..edcd439 100644
--- a/src/undo.hpp
+++ b/src/undo.hpp
@@ -42,7 +42,8 @@ namespace gnote {
 class EditAction
 {
 public:
-  virtual  void undo (Gtk::TextBuffer * buffer) = 0;
+  virtual ~EditAction() {}
+  virtual void undo (Gtk::TextBuffer * buffer) = 0;
   virtual void redo (Gtk::TextBuffer * buffer) = 0;
   virtual void merge (EditAction * action) = 0;
   virtual bool can_merge (const EditAction * action) const = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]