diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-12 10:17:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-12 11:51:11 +0100 |
commit | 58ee09b87b11a6a6b56a06f772214e8835810bd3 (patch) | |
tree | 3dba493131b4b9fd670057b8df826bfbbb41fe23 /forms | |
parent | 7bd0fb7d7c0926575d8a7ec5ea2e4a7867f9f8dd (diff) |
ByteString, shrink api
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 9ac10191d04d..c09e9f6cf3b9 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -2189,9 +2189,9 @@ void lcl_dispatch(const Reference< XFrame >& xFrame,const Reference<XURLTransfor aArgs.getArray()[0].Value <<= aReferer; // build a sequence from the to-be-submitted string - ByteString a8BitData(aData.getStr(), (sal_uInt16)aData.getLength(), _eEncoding); + rtl::OString a8BitData(rtl::OUStringToOString(aData, _eEncoding)); // always ANSI #58641 - Sequence< sal_Int8 > aPostData((sal_Int8*)a8BitData.GetBuffer(), a8BitData.Len()); + Sequence< sal_Int8 > aPostData((const sal_Int8*)a8BitData.getStr(), a8BitData.getLength()); Reference< XInputStream > xPostData = new SequenceInputStream(aPostData); aArgs.getArray()[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PostData") ); |