Skip to content

Commit

Permalink
implict bool
Browse files Browse the repository at this point in the history
Co-authored-by: David Markowitz <[email protected]>
  • Loading branch information
aronwk-aaron and EmosewaMC authored Jun 7, 2024
1 parent 42cf2b6 commit 0e6cb8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
if (!raw_ids.empty()) {
for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) {
if (!idstr.empty()) {
const auto id = GeneralUtils::TryParse<int32_t>(idstr).value_or(-1);
if (id != -1) entry.ids.push_back(id);
const auto id = GeneralUtils::TryParse<int32_t>(idstr);
if (id) entry.ids.push_back(id);

Check failure on line 28 in dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp

View workflow job for this annotation

GitHub Actions / Build & Test (ubuntu-22.04)

no matching function for call to ‘std::vector<unsigned int>::push_back(const std::optional<int>&)’

Check failure on line 28 in dDatabase/CDClientDatabase/CDClientTables/CDDeletionRestrictionsTable.cpp

View workflow job for this annotation

GitHub Actions / Build & Test (macos-13)

no matching member function for call to 'push_back'
}
}
}
Expand Down

0 comments on commit 0e6cb8a

Please sign in to comment.