Kaydet (Commit) b2d73530 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#5810 the vector has an entry for each char

but most of it is empty, so use a map instead

Change-Id: I92fe46939e5107926fd4b92167bbace63f0376d5
Reviewed-on: https://gerrit.libreoffice.org/48830Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 665c64a8
......@@ -162,7 +162,6 @@ bool HWPPara::Read(HWPFile & hwpf, unsigned char flag)
}
}
// read string
hhstr.resize(nch);
ii = 0;
while (ii < nch)
{
......
......@@ -23,7 +23,9 @@
#include "hwplib.h"
#include "hwpfile.h"
#include "hinfo.h"
#include <map>
#include <memory>
#include <vector>
struct HBox;
......@@ -111,7 +113,7 @@ class DLLEXPORT HWPPara
/**
* Box object list
*/
std::vector<std::unique_ptr<HBox>> hhstr;
std::map<unsigned short, std::unique_ptr<HBox>> hhstr;
HWPPara(void);
~HWPPara(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment