mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +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!
|
if (!ifs) return "nofile"; // Should not happen!
|
||||||
string line;
|
string line;
|
||||||
while (getline(ifs, line)) {
|
while (getline(ifs, line)) {
|
||||||
int p = line.find("\\documentclass");
|
string::size_type p = line.find("\\documentclass");
|
||||||
if (p != string::npos) {
|
if (p != string::npos) {
|
||||||
p = line.find('{', p);
|
p = line.find('{', p);
|
||||||
int q = line.find('}', p);
|
string::size_type q = line.find('}', p);
|
||||||
result = "literate-" + line.substr(p, q - p);
|
result = "literate-" + line.substr(p, q - p);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user