summaryrefslogtreecommitdiffstats
path: root/core/uploadDiveLogsDE.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-09 08:28:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-11 12:36:43 -0500
commit49e633039911db835beb29a77bbc890117db9845 (patch)
tree3a4ea042974812210e6b4911c44e3b481540eda5 /core/uploadDiveLogsDE.h
parent738d3057da3241d0d796812b3822270651a12691 (diff)
downloadsubsurface-49e633039911db835beb29a77bbc890117db9845.tar.gz
core: make shared prepareDives identical to desktop prepare_dives_for_divelogs
In order to replace DivelogsDeWebServices::prepare_dives_for_divelogs with uploadDiveLogsDE::prepareDives, first step is to make the functions identical. amount_selected is not maintained for mobile, add #ifdef SUBSURFACE_MOBILE Add comment, to make code more readable add white line to make code more readable change to use variable ds (created a couple of lines earlier Avoid "goto" by adding close code Remove label and close code (it was only called in 1 place) Signed-off-by: Jan Iversen <jan@casacondor.com>
Diffstat (limited to 'core/uploadDiveLogsDE.h')
-rw-r--r--core/uploadDiveLogsDE.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uploadDiveLogsDE.h b/core/uploadDiveLogsDE.h
index d19d20a26..a094271b9 100644
--- a/core/uploadDiveLogsDE.h
+++ b/core/uploadDiveLogsDE.h
@@ -26,7 +26,7 @@ signals:
private:
uploadDiveLogsDE();
- bool prepareDives(bool selected, const QString &filename);
+ bool prepareDives(const QString &tempfile, const bool selected);
void uploadDives(const QString &filename, const QString &userid, const QString &password);
QNetworkReply *reply;