]> git.lyx.org Git - features.git/commitdiff
* src/BufferParams.cpp (readToken):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 3 Dec 2007 16:42:43 +0000 (16:42 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 3 Dec 2007 16:42:43 +0000 (16:42 +0000)
- initialize pair<bool, lyx::textclass_type> pp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21939 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index f13fb287bc222891debee435c61d6c53b75b33e3..8c53fdbce69c63c6f504fea6483306fb70e91eec 100644 (file)
@@ -58,6 +58,7 @@ using std::endl;
 using std::find;
 using std::string;
 using std::istringstream;
+using std::make_pair;
 using std::ostream;
 using std::ostringstream;
 using std::pair;
@@ -474,7 +475,8 @@ string const BufferParams::readToken(Lexer & lex, string const & token,
                string const classname = lex.getString();
                // if there exists a local layout file, ignore the system one
                // NOTE: in this case, the textclass (.cls file) is assumed to be available.
-               pair<bool, lyx::textclass_type> pp;
+               pair<bool, lyx::textclass_type> pp =
+                       make_pair(false, textclass_type(0));
                if (!filepath.empty())
                        pp = textclasslist.addTextClass(
                                classname, filepath.absFilename());