mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
adcd9fbe8a
commit
2f5e1c1a5a
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user