small change: make code a bit more compact

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6081 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-02-10 10:31:08 +00:00
parent adcd9fbe8a
commit 2f5e1c1a5a

View File

@ -91,10 +91,7 @@ void LaTeXFeatures::useLayout(string const & layoutname)
bool LaTeXFeatures::isRequired(string const & name) const
{
FeaturesList::const_iterator i = find(features.begin(),
features.end(),
name);
return i != features.end();
return find(features.begin(), features.end(), name) != features.end();
}