summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:53 +0100
commit5a2704f374a619432da0792152cbef4a3b173529 (patch)
tree6298f757c63351749d2d0e767417f26910a00be3 /xmlsecurity
parent28d63935b222c3c3ce00f2f7649e33fc0916fdfb (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I8e9ac508a3bb98e051f30127c9567a1d4831a68f
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper.cxx2
-rw-r--r--xmlsecurity/source/helper/xsecctl.cxx32
2 files changed, 17 insertions, 17 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper.cxx b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
index 7827155bfb8b..a91604065ff8 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper.cxx
@@ -161,7 +161,7 @@ uno::Reference<xml::sax::XWriter> XMLSignatureHelper::CreateDocumentHandlerWithH
sNamespace = NS_DOCUMENTSIGNATURES_ODF_1_2;
pAttributeList->AddAttribute(
- OUString(ATTR_XMLNS),
+ ATTR_XMLNS,
sNamespace);
xSaxWriter->startDocument();
diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx
index 666b67bc013d..c025632008d8 100644
--- a/xmlsecurity/source/helper/xsecctl.cxx
+++ b/xmlsecurity/source/helper/xsecctl.cxx
@@ -734,13 +734,13 @@ void XSecController::exportSignature(
*/
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_XMLNS),
- OUString(NS_XMLDSIG));
+ ATTR_XMLNS,
+ NS_XMLDSIG);
if (!signatureInfo.ouSignatureId.isEmpty())
{
pAttributeList->AddAttribute(
- OUString(ATTR_ID),
+ ATTR_ID,
OUString(signatureInfo.ouSignatureId));
}
@@ -754,16 +754,16 @@ void XSecController::exportSignature(
/* Write CanonicalizationMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_C14N));
+ ATTR_ALGORITHM,
+ ALGO_C14N);
xDocumentHandler->startElement( tag_CanonicalizationMethod, cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
xDocumentHandler->endElement( tag_CanonicalizationMethod );
/* Write SignatureMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_RSASHA1));
+ ATTR_ALGORITHM,
+ ALGO_RSASHA1);
xDocumentHandler->startElement( tag_SignatureMethod, cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
xDocumentHandler->endElement( tag_SignatureMethod );
@@ -782,7 +782,7 @@ void XSecController::exportSignature(
*/
{
pAttributeList->AddAttribute(
- OUString(ATTR_URI),
+ ATTR_URI,
refInfor.ouURI);
}
else
@@ -791,7 +791,7 @@ void XSecController::exportSignature(
*/
{
pAttributeList->AddAttribute(
- OUString(ATTR_URI),
+ ATTR_URI,
CHAR_FRAGMENT+refInfor.ouURI);
}
@@ -809,8 +809,8 @@ void XSecController::exportSignature(
{
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_C14N));
+ ATTR_ALGORITHM,
+ ALGO_C14N);
xDocumentHandler->startElement(
tag_Transform,
cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
@@ -822,8 +822,8 @@ void XSecController::exportSignature(
/* Write DigestMethod element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ALGORITHM),
- OUString(ALGO_XMLDSIGSHA1));
+ ATTR_ALGORITHM,
+ ALGO_XMLDSIGSHA1);
xDocumentHandler->startElement(
tag_DigestMethod,
cssu::Reference< cssxs::XAttributeList > (pAttributeList) );
@@ -906,10 +906,10 @@ void XSecController::exportSignature(
/* Write SignatureProperty element */
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
- OUString(ATTR_ID),
+ ATTR_ID,
signatureInfo.ouPropertyId);
pAttributeList->AddAttribute(
- OUString(ATTR_TARGET),
+ ATTR_TARGET,
CHAR_FRAGMENT+signatureInfo.ouSignatureId);
xDocumentHandler->startElement(
tag_SignatureProperty,
@@ -920,7 +920,7 @@ void XSecController::exportSignature(
pAttributeList = new SvXMLAttributeList();
pAttributeList->AddAttribute(
ATTR_XMLNS ":" NSTAG_DC,
- OUString(NS_DC));
+ NS_DC);
xDocumentHandler->startElement(
NSTAG_DC ":" + tag_Date,