[Libreoffice-commits] core.git: editeng/inc

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jul 30 14:19:23 UTC 2018


 editeng/inc/editdoc.hxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit ce3e03bd87b9091485931d7621472a3113b41a9e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Jul 30 13:16:00 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Jul 30 16:19:00 2018 +0200

    deque could be a vector instead
    
    reduces peak memory from 90M to 65M
    
    Change-Id: Ia30309b7a1adf0736c1e84b2aafcd8b10b7fea8c
    Reviewed-on: https://gerrit.libreoffice.org/58324
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 821a26e79306..92b677466761 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -33,7 +33,6 @@
 #include <tools/lineend.hxx>
 #include <o3tl/typed_flags_set.hxx>
 
-#include <deque>
 #include <memory>
 #include <vector>
 
@@ -90,7 +89,7 @@ struct ScriptTypePosInfo
     }
 };
 
-typedef std::deque< ScriptTypePosInfo > ScriptTypePosInfos;
+typedef std::vector<ScriptTypePosInfo> ScriptTypePosInfos;
 
 struct WritingDirectionInfo
 {


More information about the Libreoffice-commits mailing list