diff options
author | Olivier Hallot <olivier.hallot@documentfoundation.org> | 2012-01-03 21:17:13 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-01-04 13:16:37 +0100 |
commit | e224197bda4fc17b0a2333a2af69c11577ec3ef4 (patch) | |
tree | b49bfaf57fec6bedcf19596f0f7b607e2378943d /reportdesign/source/ui/dlg/Formula.cxx | |
parent | gbuild: define NOMINMAX in windows.mk (diff) | |
download | core-e224197bda4fc17b0a2333a2af69c11577ec3ef4.tar.gz core-e224197bda4fc17b0a2333a2af69c11577ec3ef4.zip |
Fix for fdo43460 Part XXVIII getLength() to isEmpty()
Diffstat (limited to 'reportdesign/source/ui/dlg/Formula.cxx')
-rw-r--r-- | reportdesign/source/ui/dlg/Formula.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/dlg/Formula.cxx b/reportdesign/source/ui/dlg/Formula.cxx index 3b4f7ee3d22c..2c30b6e11751 100644 --- a/reportdesign/source/ui/dlg/Formula.cxx +++ b/reportdesign/source/ui/dlg/Formula.cxx @@ -71,7 +71,7 @@ FormulaDialog::FormulaDialog(Window* pParent ,m_nStart(0) ,m_nEnd(1) { - if ( _sFormula.getLength() > 0 ) + if ( !_sFormula.isEmpty() ) { if ( _sFormula.getStr()[0] != '=' ) m_sFormula += String(_sFormula); @@ -235,7 +235,7 @@ IMPL_LINK( FormulaDialog, OnClickHdl, OAddFieldWindow* ,_pAddFieldDlg) ::svx::ODataAccessDescriptor aDescriptor(aValue); ::rtl::OUString sName; aDescriptor[ ::svx::daColumnName ] >>= sName; - if ( sName.getLength() ) + if ( !sName.isEmpty() ) { sName = ::rtl::OUString (RTL_CONSTASCII_USTRINGPARAM("[")) + sName + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("]")); m_pEdit->SetText(sName); |