]> git.lyx.org Git - features.git/commitdiff
small change: make code a bit more compact
authorAndré Pönitz <poenitz@gmx.net>
Mon, 10 Feb 2003 10:31:08 +0000 (10:31 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Mon, 10 Feb 2003 10:31:08 +0000 (10:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6081 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeXFeatures.C

index bed69c6c1e0217fd2bb13163c802994cc734469c..efeef10a4c040fae21f64f7cb4cc86a75b4fc3ee 100644 (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();
 }