diff options
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 ); |