summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/misc/databaseobjectview.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-19 18:10:37 -0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2011-12-21 09:52:48 +0100
commit545921f914ec172bcd6712cce54847131a49afb6 (patch)
tree92dde2ebc7c4d70240e4967b11526e73fef10b16 /dbaccess/source/ui/misc/databaseobjectview.cxx
parent1835d0599e3d8984c7dfa2bbef2be5747596716a (diff)
Fix for fdo43460 Part XII getLength() to isEmpty()
Part XII Module dbaccess
Diffstat (limited to 'dbaccess/source/ui/misc/databaseobjectview.cxx')
-rw-r--r--dbaccess/source/ui/misc/databaseobjectview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/misc/databaseobjectview.cxx b/dbaccess/source/ui/misc/databaseobjectview.cxx
index f2d7d8af36f7..60597f36584f 100644
--- a/dbaccess/source/ui/misc/databaseobjectview.cxx
+++ b/dbaccess/source/ui/misc/databaseobjectview.cxx
@@ -208,7 +208,7 @@ namespace dbaui
{
DatabaseObjectView::fillDispatchArgs( i_rDispatchArgs, _aDataSource, _rObjectName );
- const bool bIncludeQueryName = 0 != _rObjectName.getLength();
+ const bool bIncludeQueryName = !_rObjectName.isEmpty();
const bool bGraphicalDesign = i_rDispatchArgs.getOrDefault( (::rtl::OUString)PROPERTY_GRAPHICAL_DESIGN, sal_True );
const bool bEditViewAsSQLCommand = ( m_nCommandType == CommandType::TABLE ) && !bGraphicalDesign;
@@ -240,7 +240,7 @@ namespace dbaui
{
DatabaseObjectView::fillDispatchArgs( i_rDispatchArgs, _aDataSource, _rObjectName );
- if ( 0 != _rObjectName.getLength() )
+ if ( !_rObjectName.isEmpty() )
{
i_rDispatchArgs.put( (::rtl::OUString)PROPERTY_CURRENTTABLE, _rObjectName );
}
@@ -250,7 +250,7 @@ namespace dbaui
Reference< XComponent > TableDesigner::doCreateView( const Any& _rDataSource, const ::rtl::OUString& _rObjectName,
const ::comphelper::NamedValueCollection& i_rCreationArgs )
{
- bool bIsNewDesign = ( _rObjectName.getLength() == 0 );
+ bool bIsNewDesign = _rObjectName.isEmpty();
// let's see whether the connection can provide a dedicated table desginer
Reference< XInterface > xDesigner;
@@ -307,7 +307,7 @@ namespace dbaui
const ::rtl::OUString& _rQualifiedName)
{
DatabaseObjectView::fillDispatchArgs( i_rDispatchArgs, _aDataSource, _rQualifiedName );
- OSL_ENSURE( 0 != _rQualifiedName.getLength(),"A Table name must be set");
+ OSL_ENSURE( !_rQualifiedName.isEmpty(),"A Table name must be set");
::rtl::OUString sCatalog;
::rtl::OUString sSchema;
::rtl::OUString sTable;