summaryrefslogtreecommitdiff
path: root/svx/source/form/fmpgeimp.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:10:39 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-14 12:11:48 -0200
commitdc04d67e94d9302278fc049d6617b62fe461ac66 (patch)
tree3dc4e0e5ee4406483cc1bc8c7bb690a1b2c6efe9 /svx/source/form/fmpgeimp.cxx
parentc447d9ba8c7d40670c59a9ec9d45f32a36c1efcd (diff)
Fix for fdo43460 Part XXXVIII getLength() to isEmpty()
Part XXXVIII Modules svx
Diffstat (limited to 'svx/source/form/fmpgeimp.cxx')
-rw-r--r--svx/source/form/fmpgeimp.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx
index b5bd00041d3b..b71ed1c0f710 100644
--- a/svx/source/form/fmpgeimp.cxx
+++ b/svx/source/form/fmpgeimp.cxx
@@ -491,7 +491,7 @@ Reference< ::com::sun::star::form::XForm > FmFormPageImpl::findPlaceInFormCompo
// Wenn Datenbank und CursorSource gesetzt sind, dann wird
// die Form anhand dieser Kriterien gesucht, ansonsten nur aktuelle
// und die StandardForm
- if (rDatabase.is() && rCursorSource.getLength())
+ if (rDatabase.is() && !rCursorSource.isEmpty())
{
validateCurForm();
@@ -529,7 +529,7 @@ Reference< ::com::sun::star::form::XForm > FmFormPageImpl::findPlaceInFormCompo
try { xFormProps->setPropertyValue(FM_PROP_COMMANDTYPE, makeAny(sal_Int32(CommandType::TABLE))); }
catch(Exception&) { }
- if (rDBTitle.getLength())
+ if (!rDBTitle.isEmpty())
xFormProps->setPropertyValue(FM_PROP_DATASOURCE,makeAny(rDBTitle));
else
{
@@ -595,7 +595,7 @@ Reference< XForm > FmFormPageImpl::findFormForDataSource(
xFormProps->getPropertyValue(FM_PROP_DATASOURCE) >>= sFormDataSourceName;
// if there's no DataSourceName set at the form, check whether we can deduce one from its
// ActiveConnection
- if (0 == sFormDataSourceName.getLength())
+ if (sFormDataSourceName.isEmpty())
{
Reference< XConnection > xFormConnection;
xFormProps->getPropertyValue( FM_PROP_ACTIVE_CONNECTION ) >>= xFormConnection;
@@ -628,11 +628,11 @@ Reference< XForm > FmFormPageImpl::findFormForDataSource(
// jetzt noch ueberpruefen ob CursorSource und Type uebereinstimmen
::rtl::OUString aCursorSource = ::comphelper::getString(xFormProps->getPropertyValue(FM_PROP_COMMAND));
sal_Int32 nType = ::comphelper::getINT32(xFormProps->getPropertyValue(FM_PROP_COMMANDTYPE));
- if (!aCursorSource.getLength() || ((nType == nCommandType) && (aCursorSource == _rCursorSource))) // found the form
+ if (aCursorSource.isEmpty() || ((nType == nCommandType) && (aCursorSource == _rCursorSource))) // found the form
{
xResultForm = rForm;
// Ist noch keine Datenquelle gesetzt, wird dieses hier nachgeholt
- if (!aCursorSource.getLength())
+ if (aCursorSource.isEmpty())
{
xFormProps->setPropertyValue(FM_PROP_COMMAND, makeAny(_rCursorSource));
xFormProps->setPropertyValue(FM_PROP_COMMANDTYPE, makeAny((sal_Int32)nCommandType));
@@ -675,7 +675,7 @@ Reference< XForm > FmFormPageImpl::findFormForDataSource(
sName = ::comphelper::getString( xSet->getPropertyValue( FM_PROP_NAME ) );
Reference< ::com::sun::star::container::XNameAccess > xNameAcc(xControls, UNO_QUERY);
- if (!sName.getLength() || xNameAcc->hasByName(sName))
+ if (sName.isEmpty() || xNameAcc->hasByName(sName))
{
// setzen eines default Namens ueber die ClassId
sal_Int16 nClassId( FormComponentType::CONTROL );
@@ -685,7 +685,7 @@ Reference< XForm > FmFormPageImpl::findFormForDataSource(
Reference< XNameAccess >( xControls, UNO_QUERY ), xSet );
// bei Radiobuttons, die einen Namen haben, diesen nicht ueberschreiben!
- if (!sName.getLength() || nClassId != ::com::sun::star::form::FormComponentType::RADIOBUTTON)
+ if (sName.isEmpty() || nClassId != ::com::sun::star::form::FormComponentType::RADIOBUTTON)
{
xSet->setPropertyValue(FM_PROP_NAME, makeAny(sDefaultName));
}