mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
small fix to avoid signed/unsigned warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@339 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1d00ad9765
commit
8ac770821c
@ -63,10 +63,10 @@ string ImportNoweb::documentclass()
|
||||
if (!ifs) return "nofile"; // Should not happen!
|
||||
string line;
|
||||
while (getline(ifs, line)) {
|
||||
int p = line.find("\\documentclass");
|
||||
string::size_type p = line.find("\\documentclass");
|
||||
if (p != string::npos) {
|
||||
p = line.find('{', p);
|
||||
int q = line.find('}', p);
|
||||
string::size_type q = line.find('}', p);
|
||||
result = "literate-" + line.substr(p, q - p);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user