[poppler] poppler/poppler: UGooString.cc,1.2,1.3
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Jun 11 09:14:34 PDT 2006
Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv15739
Modified Files:
UGooString.cc
Log Message:
optimization by Mario Teijeiro Otero
Index: UGooString.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/UGooString.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- UGooString.cc 10 Jun 2006 22:23:19 -0000 1.2
+++ UGooString.cc 11 Jun 2006 16:14:32 -0000 1.3
@@ -52,7 +52,7 @@
length = str.getLength();
s = (Unicode *)gmallocn(length, sizeof(Unicode));
bool anyNonEncoded = false;
- for (int j = 0; j < length; ++j) {
+ for (int j = 0; j < length && !anyNonEncoded; ++j) {
s[j] = pdfDocEncoding[str.getChar(j) & 0xff];
if (!s[j]) anyNonEncoded = true;
}
More information about the poppler
mailing list