From 879f52180c077e924c7e44eb4c38017606df2834 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 19 May 2019 18:20:50 +0200 Subject: Cleanup: fix a few comments and debug messages This is just minor fixes that are not user-visible: Fix a few erroneous comments and a debug message. These are copy & paste mistakes and mistakes introduced during code- refactoring. Signed-off-by: Berthold Stoeger --- desktop-widgets/command_divelist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp index eb3de65cd..ddc3d11ce 100644 --- a/desktop-widgets/command_divelist.cpp +++ b/desktop-widgets/command_divelist.cpp @@ -381,8 +381,7 @@ AddDive::AddDive(dive *d, bool autogroup, bool newNumber) d->dc.maxdepth.mm = 0; fixup_dive(d); - // Get an owning pointer to a copied or moved dive - // Note: if move is true, this destroys the old dive! + // Get an owning pointer to a moved dive. OwningDivePtr divePtr(clone_dive(d)); divePtr->selected = false; // If we clone a planned dive, it might have been selected. // We have to clear the flag, as selections will be managed -- cgit v1.2.3-70-g09d2