mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Initialize Parse::theCatCode_ in constructor
Normally, it is done before tokenizing, but it does not hurt to do it even before. Found by Coverity.
This commit is contained in:
parent
76f45b351d
commit
0f5c34b8ab
@ -162,6 +162,7 @@ Parser::Parser(idocstream & is, std::string const & fixedenc)
|
||||
{
|
||||
if (fixed_enc_)
|
||||
is_.setEncoding(fixedenc);
|
||||
catInit();
|
||||
}
|
||||
|
||||
|
||||
@ -173,6 +174,7 @@ Parser::Parser(string const & s)
|
||||
// An idocstringstream can not change the encoding
|
||||
fixed_enc_(true)
|
||||
{
|
||||
catInit();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user