summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-16 13:51:32 +0200
committerEike Rathke <erack@redhat.com>2013-06-16 15:56:43 +0000
commit040710161c507f6e4d0120cfb61d9d82bc6a0527 (patch)
treed857681a00bbf74ea914c9915a98f09d72f7c8c6 /vcl/source/control
parent4c3d2dcdadbcb8f2ffc2caab07d50a286341df96 (diff)
fdo#43460 use isEmpty()
Change-Id: Ie33025fbd10f47efd6b97304b76b21166d4ee70e Reviewed-on: https://gerrit.libreoffice.org/4307 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/edit.cxx2
-rw-r--r--vcl/source/control/field.cxx2
-rw-r--r--vcl/source/control/field2.cxx2
-rw-r--r--vcl/source/control/longcurr.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 10b25dc94c6c..20c41a91be6a 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2407,7 +2407,7 @@ void Edit::StateChanged( StateChangedType nType )
mnAlign = EDIT_ALIGN_RIGHT;
else if ( nStyle & WB_CENTER )
mnAlign = EDIT_ALIGN_CENTER;
- if ( maText.getLength() && ( mnAlign != nOldAlign ) )
+ if ( !maText.isEmpty() && ( mnAlign != nOldAlign ) )
{
ImplAlign();
Invalidate();
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 38b800317ebe..b491ba53e3d7 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -1111,7 +1111,7 @@ static OUString ImplMetricGetUnitText(const OUString& rStr)
aStr.insert(0, c);
else
{
- if (aStr.getLength())
+ if (!aStr.isEmpty())
break;
}
}
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index da08f7dfc383..1efc6294df1d 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2212,7 +2212,7 @@ static bool ImplIsValidTimePortion( sal_Bool _bSkipInvalidCharacters, const OUSt
{
if ( !_bSkipInvalidCharacters )
{
- if ( ( _rStr.getLength() > 2 ) || ( _rStr.getLength() < 1 ) || !ImplIsOnlyDigits( _rStr ) )
+ if ( ( _rStr.getLength() > 2 ) || _rStr.isEmpty() || !ImplIsOnlyDigits( _rStr ) )
return false;
}
return true;
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index 6f070afeccc8..9881521dd5bc 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -204,7 +204,7 @@ static bool ImplNumericGetValue( const XubString& rStr, BigInt& rValue,
aStr2.remove(i, 1);
}
- if (!aStr1.Len() && !aStr2.getLength())
+ if (!aStr1.Len() && aStr2.isEmpty())
return false;
if ( !aStr1.Len() )