summaryrefslogtreecommitdiff
path: root/hwpfilter/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-01 08:54:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-01 14:46:13 +0100
commit37bc6ca4bbdfa355440183f54e9fe35e8d23cae2 (patch)
treee68da470e51f869cef3f472ab7336f33b8fd0d89 /hwpfilter/source
parent4ed91fc7214b08112bc73844db3bdaab69f73564 (diff)
fix ODR violation
which causes a segfault in CppunitTest_hwpfilter_test_hwpfilter when building with --enable-mergelibs=more Change-Id: I4310060e28ee092bf7831d5dfd71e98ad3724bbe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164177 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter/source')
-rw-r--r--hwpfilter/source/hwpfile.cxx4
-rw-r--r--hwpfilter/source/hwpfile.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/hwpfilter/source/hwpfile.cxx b/hwpfilter/source/hwpfile.cxx
index 637489aee04b..c186ad8609a4 100644
--- a/hwpfilter/source/hwpfile.cxx
+++ b/hwpfilter/source/hwpfile.cxx
@@ -566,13 +566,13 @@ void HWPFile::AddCharShape(std::shared_ptr<CharShape> const & cshape)
void HWPFile::AddColumnInfo()
{
- columnlist.emplace_back(new ColumnInfo(m_nCurrentPage));
+ columnlist.emplace_back(new HWPColumnInfo(m_nCurrentPage));
setMaxSettedPage();
}
void HWPFile::SetColumnDef(const std::shared_ptr<ColumnDef>& rColdef)
{
- ColumnInfo *cinfo = columnlist.back().get();
+ HWPColumnInfo *cinfo = columnlist.back().get();
if( cinfo->bIsSet )
return;
cinfo->xColdef = rColdef;
diff --git a/hwpfilter/source/hwpfile.h b/hwpfilter/source/hwpfile.h
index 2c4d7e7bdc9e..126b7edf0fd8 100644
--- a/hwpfilter/source/hwpfile.h
+++ b/hwpfilter/source/hwpfile.h
@@ -68,11 +68,11 @@ class HWPStyle;
class HWPPara;
class HStream;
-struct ColumnInfo{
+struct HWPColumnInfo{
int start_page;
bool bIsSet;
std::shared_ptr<ColumnDef> xColdef;
- explicit ColumnInfo(int num){
+ explicit HWPColumnInfo(int num){
start_page = num;
bIsSet = false;
}
@@ -279,7 +279,7 @@ class DLLEXPORT HWPFile
HWPInfo _hwpInfo;
HWPFont _hwpFont;
HWPStyle _hwpStyle;
- std::vector<std::unique_ptr<ColumnInfo>> columnlist;
+ std::vector<std::unique_ptr<HWPColumnInfo>> columnlist;
// paragraph list
std::vector<std::unique_ptr<HWPPara>> plist;
// keep paragraph's that failed to load until