diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-23 17:21:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-23 19:59:58 +0100 |
commit | e903601e636bcec8bdb7d1a4acb4bab27bf87533 (patch) | |
tree | bf32518782d13e8665ed478514a27bed6f6d102e | |
parent | 8d933132ab01f0070225fae6cf704c9a1982e8f8 (diff) |
can replace sequence with simple array here
Change-Id: I1b5125f5354dc2a1f4b4312dbe2b921d5cf13b49
-rw-r--r-- | xmlsecurity/source/helper/xsecsign.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlsecurity/source/helper/xsecsign.cxx b/xmlsecurity/source/helper/xsecsign.cxx index cfa312e5c535..70149ce4a76e 100644 --- a/xmlsecurity/source/helper/xsecsign.cxx +++ b/xmlsecurity/source/helper/xsecsign.cxx @@ -43,14 +43,14 @@ namespace cssxs = com::sun::star::xml::sax; /* protected: for signature generation */ OUString XSecController::createId() { - cssu::Sequence< sal_Int8 > aSeq( 16 ); - rtl_createUuid (reinterpret_cast<sal_uInt8 *>(aSeq.getArray()), 0, sal_True); + sal_uInt8 aSeq[16]; + rtl_createUuid( aSeq, 0, true ); char str[68]="ID_"; int length = 3; for (int i=0; i<16; ++i) { - length += sprintf(str+length, "%04x", (unsigned char)aSeq[i]); + length += sprintf(str+length, "%04x", aSeq[i]); } return OUString::createFromAscii(str); |