summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/app')
-rw-r--r--dbaccess/source/ui/app/AppController.cxx10
-rw-r--r--dbaccess/source/ui/app/AppControllerDnD.cxx10
-rw-r--r--dbaccess/source/ui/app/AppControllerGen.cxx4
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx2
-rw-r--r--dbaccess/source/ui/app/subcomponentmanager.cxx4
5 files changed, 15 insertions, 15 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 216d65ffe63f..89cbc28b2068 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -422,7 +422,7 @@ void SAL_CALL OApplicationController::disposing()
if ( m_xModel.is() )
{
::rtl::OUString sUrl = m_xModel->getURL();
- if ( sUrl.getLength() )
+ if ( !sUrl.isEmpty() )
{
::comphelper::NamedValueCollection aArgs( m_xModel->getArgs() );
if ( true == aArgs.getOrDefault( "PickListEntry", true ) )
@@ -676,7 +676,7 @@ FeatureState OApplicationController::GetState(sal_uInt16 _nId) const
if ( aReturn.bEnabled )
{
const ::rtl::OUString sReportEngineServiceName = ::dbtools::getDefaultReportEngineServiceName(m_xServiceFactory);
- aReturn.bEnabled = sReportEngineServiceName.getLength() != 0;
+ aReturn.bEnabled = !sReportEngineServiceName.isEmpty();
if ( aReturn.bEnabled )
{
const Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(sReportEngineServiceName);
@@ -1175,7 +1175,7 @@ void OApplicationController::Execute(sal_uInt16 _nId, const Sequence< PropertyVa
::rtl::OUString sUrl;
if ( m_xModel.is() )
sUrl = m_xModel->getURL();
- if ( !sUrl.getLength() )
+ if ( sUrl.isEmpty() )
sUrl = SvtPathOptions().GetWorkPath();
::sfx2::FileDialogHelper aFileDlg(
@@ -2507,7 +2507,7 @@ sal_Int8 OApplicationController::queryDrop( const AcceptDropEvent& _rEvt, const
if ( pHitEntry )
{
sName = pView->getQualifiedName( pHitEntry );
- if ( sName.getLength() )
+ if ( !sName.isEmpty() )
{
Reference< XHierarchicalNameAccess > xContainer(getElements(pView->getElementType()),UNO_QUERY);
if ( xContainer.is() && xContainer->hasByHierarchicalName(sName) )
@@ -2848,7 +2848,7 @@ void OApplicationController::containerFound( const Reference< XContainer >& _xCo
try
{
sName = getContainer()->getQualifiedName( NULL );
- OSL_ENSURE( sName.getLength(), "OApplicationController::getCurrentlySelectedName: no name given!" );
+ OSL_ENSURE( !sName.isEmpty(), "OApplicationController::getCurrentlySelectedName: no name given!" );
}
catch( const Exception& )
{
diff --git a/dbaccess/source/ui/app/AppControllerDnD.cxx b/dbaccess/source/ui/app/AppControllerDnD.cxx
index 07884331e29b..6e8653f5185b 100644
--- a/dbaccess/source/ui/app/AppControllerDnD.cxx
+++ b/dbaccess/source/ui/app/AppControllerDnD.cxx
@@ -227,7 +227,7 @@ void OApplicationController::deleteObjects( ElementType _eType, const ::std::vec
{
svtools::QueryDeleteDlg_Impl aDlg( getView(), *aThisRound );
- if ( sDialogPosition.getLength() )
+ if ( !sDialogPosition.isEmpty() )
aDlg.SetWindowState( sDialogPosition );
if ( nObjectsLeft > 1 )
@@ -510,7 +510,7 @@ TransferableHelper* OApplicationController::copyObject()
xMetaData = xConnection->getMetaData();
::rtl::OUString sName = getContainer()->getQualifiedName( NULL );
- if ( sName.getLength() )
+ if ( !sName.isEmpty() )
{
::rtl::OUString sDataSource = getDatabaseName();
@@ -583,7 +583,7 @@ sal_Bool OApplicationController::paste( ElementType _eType,const ::svx::ODataAcc
if (CommandType::QUERY == nCommandType)
bValidDescriptor = sDataSourceName.getLength() && sCommand.getLength();
else if (CommandType::COMMAND == nCommandType)
- bValidDescriptor = (0 != sCommand.getLength());
+ bValidDescriptor = !sCommand.isEmpty();
if (!bValidDescriptor)
{
OSL_FAIL("OApplicationController::paste: invalid descriptor!");
@@ -597,7 +597,7 @@ sal_Bool OApplicationController::paste( ElementType _eType,const ::svx::ODataAcc
if ( CommandType::QUERY == nCommandType )
sTargetName = sCommand;
- if ( !sTargetName.getLength() )
+ if ( sTargetName.isEmpty() )
{
String sDefaultName = String( ModuleRes( STR_QRY_TITLE ) );
sDefaultName = sDefaultName.GetToken( 0, ' ' );
@@ -658,7 +658,7 @@ sal_Bool OApplicationController::paste( ElementType _eType,const ::svx::ODataAcc
DynamicTableOrQueryNameCheck aNameChecker( getConnection(), CommandType::QUERY );
::dbtools::SQLExceptionInfo aDummy;
- bool bNeedAskForName = ( sCommand.getLength() == 0 )
+ bool bNeedAskForName = ( sCommand.isEmpty() )
/* we did not have a source name, so the target name was auto-generated */
|| ( !aNameChecker.isNameValid( sTargetName, aDummy ) );
/* name is invalid in the target DB (e.g. because it already
diff --git a/dbaccess/source/ui/app/AppControllerGen.cxx b/dbaccess/source/ui/app/AppControllerGen.cxx
index c894cd814548..ef40f0f607c9 100644
--- a/dbaccess/source/ui/app/AppControllerGen.cxx
+++ b/dbaccess/source/ui/app/AppControllerGen.cxx
@@ -239,7 +239,7 @@ void OApplicationController::openDialog( const ::rtl::OUString& _sServiceName )
::rtl::OUString sInitialSelection;
if ( getContainer() )
sInitialSelection = getDatabaseName();
- if ( sInitialSelection.getLength() )
+ if ( !sInitialSelection.isEmpty() )
{
aArgs[ nArgPos++ ] <<= PropertyValue(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InitialSelection" ) ), 0,
@@ -331,7 +331,7 @@ void SAL_CALL OApplicationController::propertyChange( const PropertyChangeEvent&
// if the old name is empty, then this is a newly inserted content. We're notified of it via the
// elementInserted method, so there's no need to handle it here.
- if ( sOldName.getLength() )
+ if ( !sOldName.isEmpty() )
{
Reference<XChild> xChild(evt.Source,UNO_QUERY);
if ( xChild.is() )
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 4f7c95a6b52d..a68416cfb5be 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -434,7 +434,7 @@ void OAppDetailPageHelper::describeCurrentSelectionForType( const ElementType _e
break;
}
- if ( aObject.Name.getLength() )
+ if ( !aObject.Name.isEmpty() )
{
aSelected.push_back( aObject );
}
diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx
index 9b6d612b1b4c..4cbd6f14ace9 100644
--- a/dbaccess/source/ui/app/subcomponentmanager.cxx
+++ b/dbaccess/source/ui/app/subcomponentmanager.cxx
@@ -499,7 +499,7 @@ namespace dbaui
::osl::ClearableMutexGuard aGuard( m_pData->getMutex() );
#if OSL_DEBUG_LEVEL > 0
- if ( _rName.getLength() )
+ if ( !_rName.isEmpty() )
{
// check there does not already exist such a component
SubComponents::const_iterator existentPos = ::std::find_if(
@@ -561,7 +561,7 @@ namespace dbaui
bool SubComponentManager::closeSubFrames( const ::rtl::OUString& i_rName, const sal_Int32 _nComponentType )
{
::osl::MutexGuard aGuard( m_pData->getMutex() );
- ENSURE_OR_RETURN_FALSE( i_rName.getLength(), "SubComponentManager::closeSubFrames: illegal name!" );
+ ENSURE_OR_RETURN_FALSE( !i_rName.isEmpty(), "SubComponentManager::closeSubFrames: illegal name!" );
SubComponents aWorkingCopy( m_pData->m_aComponents );
for ( SubComponents::const_iterator comp = aWorkingCopy.begin();