summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txatbase.cxx
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-02-26 09:12:48 +0100
committerMichael Stahl <mstahl@redhat.com>2018-02-26 12:50:47 +0100
commite075d09557e4637273de03f2f018d95e91b05455 (patch)
treec3431dc6a387ff20e83a9fd8145dca97e36328d0 /sw/source/core/txtnode/txatbase.cxx
parentb8d5061f54408960177992d0f4be312b7d123167 (diff)
sw: Fix build with older boost::optional like 1.54
Change-Id: I2256a52e2017bfda04b3a2395f82b0aff0aa5b22 Reviewed-on: https://gerrit.libreoffice.org/50343 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/core/txtnode/txatbase.cxx')
-rw-r--r--sw/source/core/txtnode/txatbase.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx
index 5c53ba78faca..82015ad57df2 100644
--- a/sw/source/core/txtnode/txatbase.cxx
+++ b/sw/source/core/txtnode/txatbase.cxx
@@ -100,21 +100,21 @@ void SwTextAttr::dumpAsXml(xmlTextWriterPtr pWriter) const
{
pWhich = "character format";
if (SwCharFormat* pCharFormat = GetCharFormat().GetCharFormat())
- oValue = "name: " + OUStringToOString(pCharFormat->GetName(), RTL_TEXTENCODING_UTF8);
+ oValue = OString("name: " + OUStringToOString(pCharFormat->GetName(), RTL_TEXTENCODING_UTF8));
break;
}
case RES_TXTATR_INETFMT:
{
pWhich = "inet format";
const SwFormatINetFormat& rFormat = GetINetFormat();
- oValue = "url: " + rFormat.GetValue().toUtf8();
+ oValue = OString("url: " + rFormat.GetValue().toUtf8());
break;
}
case RES_TXTATR_CJK_RUBY:
{
pWhich = "ruby";
const SwFormatRuby& rFormat = GetRuby();
- oValue = "rubytext: " + rFormat.GetText().toUtf8();
+ oValue = OString("rubytext: " + rFormat.GetText().toUtf8());
break;
}
case RES_TXTATR_META: