Skip to content

Commit

Permalink
Send empty param to struct CTOR to silence GCC warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Jun 7, 2024
1 parent 28e077f commit aee3e03
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/po_file_review.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ namespace i18n_check
auto [msgStr1Found, msg1Str] = read_msg(entry, MSGSTR1);

m_catalog_entries.push_back(std::make_pair(
fileName, po_catalog_entry{ std::move(msgId), std::move(msgPluralId),
// when there is a plural, then msgstr 0-1 is where the
// singular and plural translations are kept
msgStr.empty() ? std::move(msg0Str) : std::move(msgStr),
std::move(msg1Str), pofs }));
fileName,
po_catalog_entry{ std::move(msgId), std::move(msgPluralId),
// when there is a plural, then msgstr 0-1 is where the
// singular and plural translations are kept
msgStr.empty() ? std::move(msg0Str) : std::move(msgStr),
std::move(msg1Str), pofs,
std::vector<std::pair<translation_issue, std::wstring>>{} }));
}
}

Expand Down

0 comments on commit aee3e03

Please sign in to comment.