diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-19 18:10:37 -0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2011-12-21 09:52:48 +0100 |
commit | 545921f914ec172bcd6712cce54847131a49afb6 (patch) | |
tree | 92dde2ebc7c4d70240e4967b11526e73fef10b16 /dbaccess/source/ui/dlg/queryfilter.cxx | |
parent | 1835d0599e3d8984c7dfa2bbef2be5747596716a (diff) |
Fix for fdo43460 Part XII getLength() to isEmpty()
Part XII
Module
dbaccess
Diffstat (limited to 'dbaccess/source/ui/dlg/queryfilter.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/queryfilter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/queryfilter.cxx b/dbaccess/source/ui/dlg/queryfilter.cxx index c9449ab7eedc..40f3624cb88a 100644 --- a/dbaccess/source/ui/dlg/queryfilter.cxx +++ b/dbaccess/source/ui/dlg/queryfilter.cxx @@ -333,7 +333,7 @@ sal_Bool DlgFilterCrit::getCondition(const ListBox& _rField,const ListBox& _rCom if ( xInfo->hasPropertyByName(PROPERTY_TABLENAME) ) { xColumn->getPropertyValue(PROPERTY_TABLENAME) >>= sTableName; - if ( sTableName.getLength() ) + if ( !sTableName.isEmpty() ) { // properly quote all parts of the table name, so e.g. <schema>.<table> becomes "<schema>"."<table>" ::rtl::OUString aCatlog,aSchema,aTable; @@ -353,7 +353,7 @@ sal_Bool DlgFilterCrit::getCondition(const ListBox& _rField,const ListBox& _rCom { const ::rtl::OUString aQuote = m_xMetaData.is() ? m_xMetaData->getIdentifierQuoteString() : ::rtl::OUString(); _rFilter.Name = ::dbtools::quoteName(aQuote,_rFilter.Name); - if ( sTableName.getLength() ) + if ( !sTableName.isEmpty() ) { static ::rtl::OUString sSep(RTL_CONSTASCII_USTRINGPARAM(".")); sTableName += sSep; |