summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-02-16 19:28:27 +0100
committerMichael Stahl <mstahl@redhat.com>2013-02-16 19:28:27 +0100
commitf3ff7103448083f55ce307b1078d60914a272521 (patch)
treee7eef0dd165506b4c3c8f527a9bfdfa1bbefcd8a /filter
parent92064bb2c265069de33d0ced7aa9d94d4c2829c3 (diff)
filter: fix broken string conversion
Change-Id: Iadcc6cddaf943b76dd82650c2f7246696aa438d1
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/svdfppt.cxx4
-rw-r--r--filter/source/svg/svgwriter.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index b307db45c1a3..cd8438f37678 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -4113,12 +4113,12 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd
OStringBuffer aMsg;
if ( rIn.Tell() > aTxMasterStyleHd.GetRecEndFilePos() )
{
- aMsg.append("\n " + "reading too many bytes:" +
+ aMsg.append("\n reading too many bytes:" +
OString::number(rIn.Tell() - aTxMasterStyleHd.GetRecEndFilePos()));
}
if ( rIn.Tell() < aTxMasterStyleHd.GetRecEndFilePos() )
{
- aMsg.append("\n " + "reading too few bytes:" +
+ aMsg.append("\n reading too few bytes:" +
OString::number(aTxMasterStyleHd.GetRecEndFilePos() - rIn.Tell()));
}
if (aMsg.getLength())
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 14e115effbc2..61f10678520e 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2943,8 +2943,8 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf,
rtl::OString sComment = pA->GetComment();
if (!sComment.isEmpty())
{
- sType.append(OUString( sComment.getStr(),
- sComment.getLength(), RTL_TEXTENCODING_UTF8 );
+ sType.append(OStringToOUString(
+ sComment, RTL_TEXTENCODING_UTF8));
}
if (sComment.equalsIgnoreAsciiCaseL(
RTL_CONSTASCII_STRINGPARAM("FIELD_SEQ_BEGIN")))