Fix compilation with gcc 4.8. Closes #1756.

This commit is contained in:
Thomas Goyne 2014-05-19 06:53:44 -07:00
parent a376ed90b9
commit 9774352a77
1 changed files with 2 additions and 2 deletions

View File

@ -709,8 +709,8 @@ void AudioTimingControllerDialogue::RegenerateInactiveLines()
{ {
using pred = bool(*)(AssDialogue const&); using pred = bool(*)(AssDialogue const&);
auto predicate = inactive_line_comments->GetBool() auto predicate = inactive_line_comments->GetBool()
? (pred)[](AssDialogue const&) { return true; } ? static_cast<pred>([](AssDialogue const&) { return true; })
: (pred)[](AssDialogue const& d) { return !d.Comment; }; : static_cast<pred>([](AssDialogue const& d) { return !d.Comment; });
bool was_empty = inactive_lines.empty(); bool was_empty = inactive_lines.empty();
inactive_lines.clear(); inactive_lines.clear();