mirror of https://github.com/odrling/Aegisub
Fix compilation with gcc 4.8. Closes #1756.
This commit is contained in:
parent
a376ed90b9
commit
9774352a77
|
@ -709,8 +709,8 @@ void AudioTimingControllerDialogue::RegenerateInactiveLines()
|
|||
{
|
||||
using pred = bool(*)(AssDialogue const&);
|
||||
auto predicate = inactive_line_comments->GetBool()
|
||||
? (pred)[](AssDialogue const&) { return true; }
|
||||
: (pred)[](AssDialogue const& d) { return !d.Comment; };
|
||||
? static_cast<pred>([](AssDialogue const&) { return true; })
|
||||
: static_cast<pred>([](AssDialogue const& d) { return !d.Comment; });
|
||||
|
||||
bool was_empty = inactive_lines.empty();
|
||||
inactive_lines.clear();
|
||||
|
|
Loading…
Reference in New Issue