Kaydet (Commit) af7cfa00 authored tarafından Jelle van der Waa's avatar Jelle van der Waa Kaydeden (comit) Noel Power

fdo#43460 forms: use isEmpty()

Change-Id: If51c22cb28646e7af3785cb086fb4a48af0f7d68
Reviewed-on: https://gerrit.libreoffice.org/4323Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst e417ce79
...@@ -219,7 +219,7 @@ OUString Model::getDefaultBindingExpressionForNode( ...@@ -219,7 +219,7 @@ OUString Model::getDefaultBindingExpressionForNode(
xCurrent = xCurrent->getParentNode() ) xCurrent = xCurrent->getParentNode() )
{ {
// insert a '/' for every step except the first // insert a '/' for every step except the first
if( aBuffer.getLength() > 0 ) if( !aBuffer.isEmpty() )
aBuffer.insert( 0, sal_Unicode('/') ); aBuffer.insert( 0, sal_Unicode('/') );
switch( xCurrent->getNodeType() ) switch( xCurrent->getNodeType() )
......
...@@ -134,7 +134,7 @@ void CSerializationURLEncoded::serialize_node(const Reference< XNode >& aNode) ...@@ -134,7 +134,7 @@ void CSerializationURLEncoded::serialize_node(const Reference< XNode >& aNode)
} }
// found anything? // found anything?
if (aValue.getLength() > 0) if (!aValue.isEmpty())
{ {
OUString aUnencValue = aValue.makeStringAndClear(); OUString aUnencValue = aValue.makeStringAndClear();
OStringBuffer aEncodedBuffer; OStringBuffer aEncodedBuffer;
......
...@@ -80,7 +80,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference< ...@@ -80,7 +80,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const CSS::uno::Reference<
Sequence< sal_Int8 > aByteBuffer(size); Sequence< sal_Int8 > aByteBuffer(size);
while ((n = aInStream->readSomeBytes(aByteBuffer, size-1)) != 0) while ((n = aInStream->readSomeBytes(aByteBuffer, size-1)) != 0)
aQueryString.append((sal_Char*)aByteBuffer.getArray(), n); 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('?');
aUTF8QueryURL.append(aQueryString.makeStringAndClear()); aUTF8QueryURL.append(aQueryString.makeStringAndClear());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment