diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-16 10:45:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-16 13:08:28 +0100 |
commit | 4828debf7b4fa19bc26e2a02e5606d2c07b4c5d2 (patch) | |
tree | b93d14373ea652e634847d31cb73d70febd862be /connectivity | |
parent | a0e326f5e109a1dc3402b4102ad730de6feeba96 (diff) |
New loplugin:empty
Change-Id: I8729db064573ac21dfe6b203c5ae244d79ecc4fe
Reviewed-on: https://gerrit.libreoffice.org/66430
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NResultSet.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index 5ae85599ecb2..c48073ed2a41 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -157,7 +157,7 @@ static EContactAddress * getDefaultContactAddress( EContact *pContact,int *value ) { EContactAddress *ec = static_cast<EContactAddress *>(e_contact_get(pContact,whichAddress(WORK_ADDR_LINE1))); - if ( ec && (strlen(ec->street)>0) ) + if ( ec && (ec->street[0]!='\0') ) { *value= *value +WORK_ADDR_LINE1 -1; return ec; @@ -165,7 +165,7 @@ getDefaultContactAddress( EContact *pContact,int *value ) else { ec = static_cast<EContactAddress *>(e_contact_get(pContact,whichAddress(HOME_ADDR_LINE1))); - if ( ec && (strlen(ec->street)>0) ) + if ( ec && (ec->street[0]!='\0') ) { *value=*value+HOME_ADDR_LINE1-1; return ec; |