diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-28 17:01:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-29 12:44:23 +0100 |
commit | 37d6ff0691f7be9fa4d742779fa59883de3586d9 (patch) | |
tree | 1d8b4f898a09ba5788f62278a65679d72e8bb516 /svtools/source | |
parent | 1c811f79e1f45809c0b90037c11045075e05c3ca (diff) |
no need for a global rtl::OUString here
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index c4418392c73e..373df6d754ed 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -151,7 +151,6 @@ SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjD // the reading of the parameter is done using the special service ::com::sun::star::datatransfer::MimeContentType, // a similar approach should be implemented for creation of the mimetype string; // for now the set of acceptable characters has to be hardcoded, in future it should be part of the service that creates the mimetype -const ::rtl::OUString aQuotedParamChars = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "()<>@,;:\\\"/[]?=!#$%&'*+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~. " ) ); static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescriptor& rObjDesc ) { @@ -181,9 +180,12 @@ static ::rtl::OUString ImplGetParameterString( const TransferableObjectDescripto for ( sal_Int32 nBInd = 0; nBInd < 128; nBInd++ ) pToAccept[nBInd] = sal_False; - for ( sal_Int32 nInd = 0; nInd < aQuotedParamChars.getLength(); nInd++ ) + const char aQuotedParamChars[] = + "()<>@,;:\\\"/[]?=!#$%&'*+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz{|}~. "; + + for ( sal_Int32 nInd = 0; nInd < RTL_CONSTASCII_LENGTH(aQuotedParamChars); ++nInd ) { - sal_Unicode nChar = aQuotedParamChars.getStr()[nInd]; + sal_Unicode nChar = aQuotedParamChars[nInd]; if ( nChar < 128 ) pToAccept[nChar] = sal_True; } |