[glom] cppcheck: Both sides of || were the same.



commit be21e92f0988d91c09cb0837c2f6e443defebe9e
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Oct 30 10:15:25 2015 +0100

    cppcheck: Both sides of || were the same.

 glom/appwindow.cc  |    2 +-
 glom/frame_glom.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index 5f3197f..7e9686b 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -2537,7 +2537,7 @@ void AppWindow::document_history_add(const Glib::ustring& file_uri)
   if(!file_uri.empty())
   {
     //Prevent saving of example file templates just because we opened them:
-    if(file_uri == m_example_uri);
+    if(file_uri == m_example_uri)
       return;
   }
 
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index 519fe42..eb79739 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -1149,7 +1149,7 @@ void Frame_Glom::on_dialog_add_related_table_response(int response)
     {
       Frame_Glom::show_ok_dialog(_("Relationship Exists Already"), _("A relationship with this name already 
exists for this table. Please choose a different relationship name."), *parent, Gtk::MESSAGE_ERROR);
     }
-    else if(table_name.empty() || relationship_name.empty() || relationship_name.empty())
+    else if(table_name.empty() || relationship_name.empty())
     {
       Frame_Glom::show_ok_dialog(_("More information needed"), _("You must specify a field, a table name, 
and a relationship name."), *parent, Gtk::MESSAGE_ERROR);
     }


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