Kaydet (Commit) e903601e authored tarafından Caolán McNamara's avatar Caolán McNamara

can replace sequence with simple array here

Change-Id: I1b5125f5354dc2a1f4b4312dbe2b921d5cf13b49
üst 8d933132
...@@ -43,14 +43,14 @@ namespace cssxs = com::sun::star::xml::sax; ...@@ -43,14 +43,14 @@ namespace cssxs = com::sun::star::xml::sax;
/* protected: for signature generation */ /* protected: for signature generation */
OUString XSecController::createId() OUString XSecController::createId()
{ {
cssu::Sequence< sal_Int8 > aSeq( 16 ); sal_uInt8 aSeq[16];
rtl_createUuid (reinterpret_cast<sal_uInt8 *>(aSeq.getArray()), 0, sal_True); rtl_createUuid( aSeq, 0, true );
char str[68]="ID_"; char str[68]="ID_";
int length = 3; int length = 3;
for (int i=0; i<16; ++i) 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); return OUString::createFromAscii(str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment