summaryrefslogtreecommitdiff
path: root/sc/source/ui/namedlg
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/namedlg')
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx4
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx2
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 );