bool Dialog::isBufferAvailable() const
{
- return lyxview_.currentBufferView() != 0;
+ return lyxview_.currentBufferView() != nullptr;
}
if (buffer().params().isLiterate())
return LITERATE;
- return DOCBOOK;
+ // This case should not happen.
+ return LATEX;
}
// Check if next is of the type we look for
if (next)
if (next->lyxCode() != code)
- next = 0;
+ next = nullptr;
if (ins) {
// prefer next if it is of the requested type (bug 8716)
if (next)
if (canApply()) {
bool const readonly = isBufferReadonly();
enableView(!readonly || canApplyToReadOnly());
- // refreshReadOnly() is too generous in _enabling_ widgets
- // update dialog to disable disabled widgets again
-
updateView();
} else
enableView(false);