summaryrefslogtreecommitdiffstats
path: root/hwpfilter/source/formula.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-17 10:37:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-17 10:37:39 +0100
commit1acbdc6bbda4021b40fa6d2da75f26e59a156d7f (patch)
tree52339b5b75ea2080146c47b02f1f2a7fe6a434ac /hwpfilter/source/formula.cxx
parentDon't assume sal_Unicode is unsigned short (diff)
downloadcore-1acbdc6bbda4021b40fa6d2da75f26e59a156d7f.tar.gz
core-1acbdc6bbda4021b40fa6d2da75f26e59a156d7f.zip
Don't assume sal_Unicode is unsigned short
Change-Id: I72b0f9956e866afd22f7335a57d7dca0297e3b8a
Diffstat (limited to 'hwpfilter/source/formula.cxx')
-rw-r--r--hwpfilter/source/formula.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/hwpfilter/source/formula.cxx b/hwpfilter/source/formula.cxx
index 0c3c73f7de36..d12c6cbce0ab 100644
--- a/hwpfilter/source/formula.cxx
+++ b/hwpfilter/source/formula.cxx
@@ -221,7 +221,7 @@ void Formula::makeIdentifier(Node *res)
indo;
#else
rstartEl("math:mi", rList);
- runistr(getMathMLEntity(tmp->value).c_str());
+ runistr(reinterpret_cast<sal_Unicode const *>(getMathMLEntity(tmp->value).c_str()));
rendEl("math:mi");
#endif
break;
@@ -243,7 +243,7 @@ void Formula::makeIdentifier(Node *res)
inds; fprintf(stderr,"<math:mo>%s</math:mo>\n",tmp->value); indo;
#else
rstartEl("math:mo", rList);
- runistr(getMathMLEntity(tmp->value).c_str());
+ runistr(reinterpret_cast<sal_Unicode const *>(getMathMLEntity(tmp->value).c_str()));
rendEl("math:mo");
#endif
break;
@@ -404,7 +404,7 @@ void Formula::makeDecoration(Node *res)
indo;
#else
rstartEl("math:mo", rList);
- runistr(getMathMLEntity(tmp->value).c_str());
+ runistr(reinterpret_cast<sal_Unicode const *>(getMathMLEntity(tmp->value).c_str()));
rendEl("math:mo");
#endif
@@ -526,9 +526,9 @@ void Formula::makeFence(Node *res)
getMathMLEntity(tmp->next->next->value).c_str());
#else
padd("open", "CDATA",
- OUString(getMathMLEntity(tmp->value).c_str()) );
+ OUString(reinterpret_cast<sal_Unicode const *>(getMathMLEntity(tmp->value).c_str())));
padd("close", "CDATA",
- OUString(getMathMLEntity(tmp->next->next->value).c_str()) );
+ OUString(reinterpret_cast<sal_Unicode const *>(getMathMLEntity(tmp->next->next->value).c_str())));
rstartEl("math:mfenced", rList);
pList->clear();
#endif