[glom] AppWindow_WthDoc::open_document_from_data(): Simplify return paths.



commit aab6f287c28241bcf3200c1e5b795a0d5aacb0c4
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 4 13:58:44 2014 +0100

    AppWindow_WthDoc::open_document_from_data(): Simplify return paths.
    
    This avoids another Coverity Scan warning about unreachable code.

 glom/bakery/appwindow_withdoc.cc |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/glom/bakery/appwindow_withdoc.cc b/glom/bakery/appwindow_withdoc.cc
index 056f675..36e2712 100644
--- a/glom/bakery/appwindow_withdoc.cc
+++ b/glom/bakery/appwindow_withdoc.cc
@@ -86,8 +86,6 @@ bool AppWindow_WithDoc::open_document_from_data(const guchar* data, std::size_t
     {
       update_window_title();
       set_document_modified(false); //disables menu and toolbar Save items.
-
-      return true; //success.
     }
   }
 


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