diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-17 20:14:39 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-17 19:53:45 +0000 |
commit | af7cfa0071f5b2be33e9b887e6221c5047d21262 (patch) | |
tree | 9ba9856e9cf90d172ef4c709f2efd64ba6110cd8 /forms | |
parent | e417ce79d97693ab21df7f37be1d86f6e0353a5f (diff) |
fdo#43460 forms: use isEmpty()
Change-Id: If51c22cb28646e7af3785cb086fb4a48af0f7d68
Reviewed-on: https://gerrit.libreoffice.org/4323
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/model_ui.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/submission/serialization_urlencoded.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/submission/submission_get.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index 7e28623c5a2f..4dec45b5bd81 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -219,7 +219,7 @@ OUString Model::getDefaultBindingExpressionForNode( xCurrent = xCurrent->getParentNode() ) { // insert a '/' for every step except the first - if( aBuffer.getLength() > 0 ) + if( !aBuffer.isEmpty() ) aBuffer.insert( 0, sal_Unicode('/') ); switch( xCurrent->getNodeType() ) diff --git a/forms/source/xforms/submission/serialization_urlencoded.cxx b/forms/source/xforms/submission/serialization_urlencoded.cxx index 0cc80e2200fa..3c857410a1e2 100644 --- a/forms/source/xforms/submission/serialization_urlencoded.cxx +++ b/forms/source/xforms/submission/serialization_urlencoded.cxx @@ -134,7 +134,7 @@ void CSerializationURLEncoded::serialize_node(const Reference< XNode >& aNode) } // found anything? - if (aValue.getLength() > 0) + if (!aValue.isEmpty()) { OUString aUnencValue = aValue.makeStringAndClear(); OStringBuffer aEncodedBuffer; diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index 62efea1ebbca..4698241e6ab0 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -80,7 +80,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference< Sequence< sal_Int8 > aByteBuffer(size); while ((n = aInStream->readSomeBytes(aByteBuffer, size-1)) != 0) aQueryString.append((sal_Char*)aByteBuffer.getArray(), n); - if (aQueryString.getLength() > 0 && m_aURLObj.GetProtocol() != INET_PROT_FILE) + if (!aQueryString.isEmpty() && m_aURLObj.GetProtocol() != INET_PROT_FILE) { aUTF8QueryURL.append('?'); aUTF8QueryURL.append(aQueryString.makeStringAndClear()); |