[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2006-06-11 16:14:23
Message-ID: 1150042463.148988.22732.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 550397 by aacid:

[micro] optimization by Mario Teijeiro Otero


 M  +1 -1      UGString.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/UGString.cc #550396:550397
@@ -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;
   }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic