aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-10-12 09:05:16 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2018-10-12 13:03:54 +0200
commit1f76460dfa46e09e84830430ce3f873ba4f66ff9 (patch)
tree4ae8b7df8668d2de4bedfbe28f6a72779a6a3e7d /desktop-widgets
parenta47df05ce5a94034fd4b5bdd83c8f425e64a5946 (diff)
downloadsubsurface-1f76460dfa46e09e84830430ce3f873ba4f66ff9.tar.gz
Whitespace only
Separated from the previous commit as I do not like big whitespace changes in a small functional commit. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index dc794ef4f..d4c867bfd 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -1280,47 +1280,47 @@ void MainTab::saveTaggedStrings(const QVector<dive *> &selectedDives)
struct dive *cd = current_dive;
if (diffTaggedStrings(cd->buddy, displayed_dive.buddy, addedList, removedList))
- MODIFY_DIVES(selectedDives,
- QStringList oldList = QString(mydive->buddy).split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
- QString newString;
- QString comma;
- Q_FOREACH (const QString tag, oldList) {
- if (!removedList.contains(tag, Qt::CaseInsensitive)) {
- newString += comma + tag;
- comma = ", ";
+ MODIFY_DIVES(selectedDives,
+ QStringList oldList = QString(mydive->buddy).split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
+ QString newString;
+ QString comma;
+ Q_FOREACH (const QString tag, oldList) {
+ if (!removedList.contains(tag, Qt::CaseInsensitive)) {
+ newString += comma + tag;
+ comma = ", ";
+ }
}
- }
- Q_FOREACH (const QString tag, addedList) {
- if (!oldList.contains(tag, Qt::CaseInsensitive)) {
- newString += comma + tag;
- comma = ", ";
+ Q_FOREACH (const QString tag, addedList) {
+ if (!oldList.contains(tag, Qt::CaseInsensitive)) {
+ newString += comma + tag;
+ comma = ", ";
+ }
}
- }
- free(mydive->buddy);
- mydive->buddy = copy_qstring(newString);
- );
+ free(mydive->buddy);
+ mydive->buddy = copy_qstring(newString);
+ );
addedList.clear();
removedList.clear();
if (diffTaggedStrings(cd->divemaster, displayed_dive.divemaster, addedList, removedList))
- MODIFY_DIVES(selectedDives,
- QStringList oldList = QString(mydive->divemaster).split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
- QString newString;
- QString comma;
- Q_FOREACH (const QString tag, oldList) {
- if (!removedList.contains(tag, Qt::CaseInsensitive)) {
- newString += comma + tag;
- comma = ", ";
+ MODIFY_DIVES(selectedDives,
+ QStringList oldList = QString(mydive->divemaster).split(QRegExp("\\s*,\\s*"), QString::SkipEmptyParts);
+ QString newString;
+ QString comma;
+ Q_FOREACH (const QString tag, oldList) {
+ if (!removedList.contains(tag, Qt::CaseInsensitive)) {
+ newString += comma + tag;
+ comma = ", ";
+ }
}
- }
- Q_FOREACH (const QString tag, addedList) {
- if (!oldList.contains(tag, Qt::CaseInsensitive)) {
- newString += comma + tag;
- comma = ", ";
+ Q_FOREACH (const QString tag, addedList) {
+ if (!oldList.contains(tag, Qt::CaseInsensitive)) {
+ newString += comma + tag;
+ comma = ", ";
+ }
}
- }
- free(mydive->divemaster);
- mydive->divemaster = copy_qstring(newString);
- );
+ free(mydive->divemaster);
+ mydive->divemaster = copy_qstring(newString);
+ );
}
int MainTab::diffTaggedStrings(QString currentString, QString displayedString, QStringList &addedList, QStringList &removedList)