summaryrefslogtreecommitdiffstats
path: root/desktop/source/deployment/misc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-04-03 22:25:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-05 06:25:39 +0000
commitdb43ef00c12bc0f7fefd6d028c9a2ed8f771cd47 (patch)
tree62f08a44e99513251324f8972d257d8fd3be2b2c /desktop/source/deployment/misc
parentsequence->vector in writerfilter (diff)
downloadcore-db43ef00c12bc0f7fefd6d028c9a2ed8f771cd47.tar.gz
core-db43ef00c12bc0f7fefd6d028c9a2ed8f771cd47.zip
sequence->vector in xmlscript
Change-Id: I4f99cd9dc659f54bd4818559dd3e0dbce1e8f5d4 Reviewed-on: https://gerrit.libreoffice.org/23795 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'desktop/source/deployment/misc')
-rw-r--r--desktop/source/deployment/misc/dp_ucb.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/source/deployment/misc/dp_ucb.cxx b/desktop/source/deployment/misc/dp_ucb.cxx
index ba0a9c0f0365..eda1d50f74b3 100644
--- a/desktop/source/deployment/misc/dp_ucb.cxx
+++ b/desktop/source/deployment/misc/dp_ucb.cxx
@@ -184,9 +184,9 @@ bool erase_path( OUString const & url,
}
-::rtl::ByteSequence readFile( ::ucbhelper::Content & ucb_content )
+std::vector<sal_Int8> readFile( ::ucbhelper::Content & ucb_content )
{
- ::rtl::ByteSequence bytes;
+ std::vector<sal_Int8> bytes;
Reference<io::XOutputStream> xStream(
::xmlscript::createOutputStream( &bytes ) );
if (! ucb_content.openStream( xStream ))
@@ -201,9 +201,9 @@ bool readLine( OUString * res, OUString const & startingWith,
::ucbhelper::Content & ucb_content, rtl_TextEncoding textenc )
{
// read whole file:
- ::rtl::ByteSequence bytes( readFile( ucb_content ) );
- OUString file( reinterpret_cast<sal_Char const *>(bytes.getConstArray()),
- bytes.getLength(), textenc );
+ std::vector<sal_Int8> bytes( readFile( ucb_content ) );
+ OUString file( reinterpret_cast<sal_Char const *>(bytes.data()),
+ bytes.size(), textenc );
sal_Int32 pos = 0;
for (;;)
{
@@ -257,9 +257,9 @@ bool readProperties( ::std::list< ::std::pair< OUString, OUString> > & out_resul
::ucbhelper::Content & ucb_content )
{
// read whole file:
- ::rtl::ByteSequence bytes( readFile( ucb_content ) );
- OUString file( reinterpret_cast<sal_Char const *>(bytes.getConstArray()),
- bytes.getLength(), RTL_TEXTENCODING_UTF8);
+ std::vector<sal_Int8> bytes( readFile( ucb_content ) );
+ OUString file( reinterpret_cast<sal_Char const *>(bytes.data()),
+ bytes.size(), RTL_TEXTENCODING_UTF8);
sal_Int32 pos = 0;
for (;;)