summaryrefslogtreecommitdiffstats
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-17 09:18:44 +0200
committerNoel Grandin <noel@peralex.com>2014-03-17 13:30:53 +0200
commit4386863e1a5b3aebaded5ff66e4bd29ca7ce67d0 (patch)
tree994eba6f93140a48fa6ff6d822b9db53b77eb8b9 /xmlsecurity/inc
parentucb: prefer passing OUString by reference (diff)
downloadcore-4386863e1a5b3aebaded5ff66e4bd29ca7ce67d0.tar.gz
core-4386863e1a5b3aebaded5ff66e4bd29ca7ce67d0.zip
xmlsecurity: prefer passing OUString by reference
Change-Id: I44b96a8adc2f6309088d99ff3bce438f660d302d
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/xmlsecurity/biginteger.hxx2
-rw-r--r--xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx2
-rw-r--r--xmlsecurity/inc/xmlsecurity/sigstruct.hxx4
-rw-r--r--xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/biginteger.hxx b/xmlsecurity/inc/xmlsecurity/biginteger.hxx
index f7c3c6124a63..32e774404a78 100644
--- a/xmlsecurity/inc/xmlsecurity/biginteger.hxx
+++ b/xmlsecurity/inc/xmlsecurity/biginteger.hxx
@@ -27,7 +27,7 @@
#include "com/sun/star/uno/Sequence.h"
OUString bigIntegerToNumericString( ::com::sun::star::uno::Sequence< sal_Int8 > serial );
-::com::sun::star::uno::Sequence< sal_Int8 > numericStringToBigInteger ( OUString serialNumber );
+::com::sun::star::uno::Sequence< sal_Int8 > numericStringToBigInteger ( const OUString& serialNumber );
#endif
diff --git a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
index 361c8d35dad9..61dc500a8f98 100644
--- a/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsecurity/documentsignaturehelper.hxx
@@ -71,7 +71,7 @@ public:
DocumentSignatureMode eDocSigMode );
static std::vector< OUString > CreateElementList(
const css::uno::Reference < css::embed::XStorage >& rxStore,
- const OUString rRootStorageName, DocumentSignatureMode eMode,
+ DocumentSignatureMode eMode,
const DocumentSignatureAlgorithm mode);
static bool isODFPre_1_2(const OUString & sODFVersion);
static bool isOOo3_2_Signature(const SignatureInformation & sigInfo);
diff --git a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
index 77ab5d85defd..dd80c3939279 100644
--- a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
+++ b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
@@ -35,11 +35,11 @@
struct SignatureReferenceInformation
{
- sal_Int32 nType;
+ sal_Int32 nType;
OUString ouURI;
OUString ouDigestValue;
- SignatureReferenceInformation( sal_Int32 type, OUString uri )
+ SignatureReferenceInformation( sal_Int32 type, const OUString& uri )
{
nType = type;
ouURI = uri;
diff --git a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
index cf2dc7cdeb9c..dfe9c76325aa 100644
--- a/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
@@ -126,7 +126,7 @@ public:
// Set the storage which should be used by the default UriBinding
// Must be set before StatrtMission().
//sODFVersion indicates the ODF version
- void SetStorage( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rxStorage, OUString sODFVersion );
+ void SetStorage( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rxStorage, const OUString& sODFVersion );
// Argument for the Link is a uno::Reference< xml::sax::XAttributeList >*
// Return 1 to verify, 0 to skip.