summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/resourcemanager.cxx4
-rw-r--r--xmlsecurity/source/helper/xsecparser.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/xmlsecurity/source/dialogs/resourcemanager.cxx b/xmlsecurity/source/dialogs/resourcemanager.cxx
index 2d84e0fe1257..5407d3933ae7 100644
--- a/xmlsecurity/source/dialogs/resourcemanager.cxx
+++ b/xmlsecurity/source/dialogs/resourcemanager.cxx
@@ -163,7 +163,7 @@ vector< pair< OUString, OUString> > parseDN(const OUString& rRawString)
{
OSL_ASSERT(!sType.isEmpty());
retVal.push_back(make_pair(sType, sbufValue.makeStringAndClear()));
- sType = OUString();
+ sType.clear();
//The next char is the start of the new type
nTypeNameStart = i + 1;
bInType = true;
@@ -258,7 +258,7 @@ vector< pair< OUString, OUString> > parseDN(const OUString& rRawString)
{
OSL_ASSERT(!sType.isEmpty());
retVal.push_back(make_pair(sType, sbufValue.makeStringAndClear()));
- sType = OUString();
+ sType.clear();
//The next char is the start of the new type
nTypeNameStart = i + 1;
bInType = true;
diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx
index de675e135c5d..ca8edf92c774 100644
--- a/xmlsecurity/source/helper/xsecparser.cxx
+++ b/xmlsecurity/source/helper/xsecparser.cxx
@@ -141,22 +141,22 @@ void SAL_CALL XSecParser::startElement(
}
else if (aName == TAG_X509ISSUERNAME)
{
- m_ouX509IssuerName = OUString();
+ m_ouX509IssuerName.clear();
m_bInX509IssuerName = true;
}
else if (aName == TAG_X509SERIALNUMBER)
{
- m_ouX509SerialNumber = OUString();
+ m_ouX509SerialNumber.clear();
m_bInX509SerialNumber = true;
}
else if (aName == TAG_X509CERTIFICATE)
{
- m_ouX509Certificate = OUString();
+ m_ouX509Certificate.clear();
m_bInX509Certificate = true;
}
else if (aName == TAG_SIGNATUREVALUE)
{
- m_ouSignatureValue = OUString();
+ m_ouSignatureValue.clear();
m_bInSignatureValue = true;
}
else if (aName == TAG_DIGESTVALUE)
@@ -173,7 +173,7 @@ void SAL_CALL XSecParser::startElement(
}
else if (aName == NSTAG_DC ":" TAG_DATE)
{
- m_ouDate = OUString();
+ m_ouDate.clear();
m_bInDate = true;
}