summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/DbAdminImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/DbAdminImpl.cxx')
-rw-r--r--dbaccess/source/ui/dlg/DbAdminImpl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
index 3280c80406d5..a38c26eeeaf9 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
@@ -458,7 +458,7 @@ Reference< XPropertySet > ODbDataSourceAdministrationHelper::getCurrentDataSourc
{
::rtl::OUString sCurrentDatasource;
m_aDataSourceOrName >>= sCurrentDatasource;
- OSL_ENSURE(sCurrentDatasource.getLength(),"No datasource name given!");
+ OSL_ENSURE(!sCurrentDatasource.isEmpty(),"No datasource name given!");
try
{
if ( m_xDatabaseContext.is() )
@@ -793,7 +793,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
{
::rtl::OUString sCharSet;
implTranslateProperty(pCurrent) >>= sCharSet;
- if ( sCharSet.getLength() )
+ if ( !sCharSet.isEmpty() )
aRelevantSettings.insert(PropertyValue(aTranslation->second, 0, makeAny(sCharSet), PropertyState_DIRECT_VALUE));
}
else
@@ -904,7 +904,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
{
::rtl::OUString sCharSet;
aLoop->Value >>= sCharSet;
- if ( sCharSet.getLength() )
+ if ( !sCharSet.isEmpty() )
*pAppendValues = *aLoop;
}
else