diff options
author | Brij Mohan Lal Srivastava <contactbrijmohan@gmail.com> | 2014-11-12 14:24:10 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-14 09:20:38 +0100 |
commit | d32be3ace8c8fd430bbecdf69f88a116b0ee91d1 (patch) | |
tree | b373c084cb124434e0498867b24bc7bb333155dd /xmlsecurity | |
parent | f5e86ebc097f0f8bc5b282511149cb026710ecde (diff) |
fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites.
Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/dialogs/resourcemanager.cxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xsecparser.cxx | 10 |
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; } |