Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Dec 9, 2024
1 parent fd9ba19 commit d7cbe1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/data/family.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,8 @@ void FamilyProxyModel::updateMapping() {
enumFromString<EventTypes::Values>(sourceModel()->index(sourceRow, EVENT_TYPE).data().toString());
if (eventType == EventTypes::Birth) {
auto partnerIdData = sourceModel()->index(sourceRow, PARTNER_ID).data();
int partnerId;
if (partnerIdData.isNull()) {
partnerId = -1;
} else {
int partnerId = -1;
if (!partnerIdData.isNull()) {
partnerId = partnerIdData.toInt();
assert(personIdToRelationshipRow.contains(partnerId));
}
Expand Down

0 comments on commit d7cbe1a

Please sign in to comment.