cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22527 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-01-12 16:44:35 +00:00
parent 560f4336fa
commit 96c21a6ca3

View File

@ -2224,15 +2224,13 @@ void Paragraph::simpleDocBookOnePar(Buffer const & buf,
bool Paragraph::isHfill(pos_type pos) const
{
return isInset(pos)
&& getInset(pos)->lyxCode() == HFILL_CODE;
return isInset(pos) && getInset(pos)->lyxCode() == HFILL_CODE;
}
bool Paragraph::isNewline(pos_type pos) const
{
return isInset(pos)
&& getInset(pos)->lyxCode() == NEWLINE_CODE;
return isInset(pos) && getInset(pos)->lyxCode() == NEWLINE_CODE;
}
@ -2250,10 +2248,8 @@ bool Paragraph::isLetter(pos_type pos) const
{
if (isInset(pos))
return getInset(pos)->isLetter();
else {
char_type const c = d->text_[pos];
return isLetterChar(c) || isDigit(c);
}
char_type const c = d->text_[pos];
return isLetterChar(c) || isDigit(c);
}
@ -2366,8 +2362,7 @@ Inset * Paragraph::inInset() const
InsetCode Paragraph::ownerCode() const
{
return d->inset_owner_ ?
d->inset_owner_->lyxCode() : NO_CODE;
return d->inset_owner_ ? d->inset_owner_->lyxCode() : NO_CODE;
}