diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-06 14:22:10 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-07 07:37:38 -0200 |
commit | 49e11ffbe1cc04f2855b18acd501954d80901efa (patch) | |
tree | 20bfbbab637d13ea81e8c467b59189701fedf1e4 /sc/source/ui/namedlg | |
parent | e4ce7225dd987f9b2f250f055d9688de79931444 (diff) |
Fix for fdo43460 Part XXX getLength() to isEmpty()
Part XXX
Modules
sc
Diffstat (limited to 'sc/source/ui/namedlg')
-rw-r--r-- | sc/source/ui/namedlg/namedefdlg.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/namedlg/namedlg.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx index 1f335650fcd7..19de63123d1d 100644 --- a/sc/source/ui/namedlg/namedefdlg.cxx +++ b/sc/source/ui/namedlg/namedefdlg.cxx @@ -200,11 +200,11 @@ void ScNameDefDlg::AddPushed() rtl::OUString aName = maEdName.GetText(); rtl::OUString aExpression = maEdRange.GetText(); - if (!aName.getLength()) + if (aName.isEmpty()) { return; } - if (!aScope.getLength()) + if (aScope.isEmpty()) { return; } diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx index 56c50e8d4b5f..fe2453f3b808 100644 --- a/sc/source/ui/namedlg/namedlg.cxx +++ b/sc/source/ui/namedlg/namedlg.cxx @@ -281,7 +281,7 @@ bool ScNameDlg::IsNameValid() rtl::OUString aName = maEdName.GetText(); aName = aName.trim(); - if (!aName.getLength()) + if (aName.isEmpty()) return false; ScRangeName* pRangeName = GetRangeName( aScope ); |