[poppler] qt5/src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 28 12:07:51 UTC 2019


 qt5/src/poppler-private.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 3c12c660748ccdd0b7c08b8f4a2891ad1368e437
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Mar 28 12:58:41 2019 +0100

    qt5: small optimization to UnicodeParsedString
    
    by using QString::reserve it should be faster and use less memory

diff --git a/qt5/src/poppler-private.cc b/qt5/src/poppler-private.cc
index b284a744..719ccffc 100644
--- a/qt5/src/poppler-private.cc
+++ b/qt5/src/poppler-private.cc
@@ -129,6 +129,7 @@ namespace Debug {
         }
 
         QString result;
+        result.reserve(stringLength / 2);
         // i = 2 to skip the unicode marker
         for ( int i = 2; i < stringLength; i += 2 )
         {


More information about the poppler mailing list