[glom] Fix silly code after a return.



commit 38e80fc846fb910939fb6258808c61bdfb0993f1
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Feb 25 14:16:11 2016 +0100

    Fix silly code after a return.

 glom/utility_widgets/dialog_image_load_progress.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glom/utility_widgets/dialog_image_load_progress.cc 
b/glom/utility_widgets/dialog_image_load_progress.cc
index 331eba1..24d9007 100644
--- a/glom/utility_widgets/dialog_image_load_progress.cc
+++ b/glom/utility_widgets/dialog_image_load_progress.cc
@@ -167,8 +167,9 @@ void DialogImageLoadProgress::error(const Glib::ustring& error_message)
 
 std::unique_ptr<GdaBinary> DialogImageLoadProgress::get_image_data()
 {
+  //This will not be as if it was reset.
+  //Not every std::move() does that, but std::move() with std::unique_ptr<> does.
   return std::move(m_data);
-  m_data.reset();
 }
 
 } // namespace Glom


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