summaryrefslogtreecommitdiff
path: root/forms/source/runtime
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:17:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:41 +0200
commitbfb185c408f6630d17bdcf9243666cc1b0af5bd7 (patch)
treee560fa416aa23d5a043e7126e41fb63811a402a5 /forms/source/runtime
parent07ea0e64f26ae4ba0a0474352df0bffb4409bd16 (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I74cf43df85a878ee9af69901b2535f63461cb61e
Diffstat (limited to 'forms/source/runtime')
-rw-r--r--forms/source/runtime/formoperations.cxx20
-rw-r--r--forms/source/runtime/formoperations.hxx2
2 files changed, 11 insertions, 11 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index 6bf77db9e54f..96e7a1f7c481 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -217,7 +217,7 @@ namespace frm
MethodGuard aGuard( *this );
FeatureState aState;
- aState.Enabled = sal_False;
+ aState.Enabled = false;
try
{
@@ -248,7 +248,7 @@ namespace frm
case FormFeature::DeleteRecord:
// already deleted ?
if ( m_xCursor->rowDeleted() )
- aState.Enabled = sal_False;
+ aState.Enabled = false;
else
{
// allowed to delete the row ?
@@ -344,20 +344,20 @@ namespace frm
// can't insert records -> disabled
if ( !nCount && !::dbtools::canInsert( m_xCursorProperties ) )
{
- aState.Enabled = sal_False;
+ aState.Enabled = false;
}
else
{
if ( bIsNew )
nPosition = ++nCount;
aState.State <<= (sal_Int32)nPosition;
- aState.Enabled = sal_True;
+ aState.Enabled = true;
}
}
else
{
aState.State <<= (sal_Int32)nPosition;
- aState.Enabled = sal_True;
+ aState.Enabled = true;
}
}
}
@@ -377,7 +377,7 @@ namespace frm
sValue += " *";
aState.State <<= sValue;
- aState.Enabled = sal_True;
+ aState.Enabled = true;
}
break;
@@ -868,7 +868,7 @@ namespace frm
sal_Bool SAL_CALL FormOperations::commitCurrentRecord( sal_Bool& _out_rRecordInserted ) throw (RuntimeException, SQLException, std::exception)
{
MethodGuard aGuard( *this );
- _out_rRecordInserted = sal_False;
+ _out_rRecordInserted = false;
return impl_commitCurrentRecord_throw( &_out_rRecordInserted );
}
@@ -892,7 +892,7 @@ namespace frm
{
m_xUpdateCursor->insertRow();
if ( _pRecordInserted )
- *_pRecordInserted = sal_True;
+ *_pRecordInserted = true;
}
else
m_xUpdateCursor->updateRow();
@@ -1453,7 +1453,7 @@ namespace frm
if ( !impl_hasCursor_nothrow() )
return;
- sal_Bool bRecordInserted = sal_False;
+ sal_Bool bRecordInserted = false;
bool bSuccess = impl_commitCurrentRecord_throw( &bRecordInserted );
if ( !bSuccess )
@@ -1487,7 +1487,7 @@ namespace frm
if ( !impl_hasCursor_nothrow() )
return;
- sal_Bool bRecordInserted = sal_False;
+ sal_Bool bRecordInserted = false;
bool bSuccess = impl_commitCurrentRecord_throw( &bRecordInserted );
if ( !bSuccess )
diff --git a/forms/source/runtime/formoperations.hxx b/forms/source/runtime/formoperations.hxx
index afde4af11da7..d4c71d4db96a 100644
--- a/forms/source/runtime/formoperations.hxx
+++ b/forms/source/runtime/formoperations.hxx
@@ -333,7 +333,7 @@ namespace frm
, m_xField(xField)
{};
- void operator()() { m_pFO->m_xParser->appendFilterByColumn( m_xField, sal_True, css::sdb::SQLFilterOperator::EQUAL ); }
+ void operator()() { m_pFO->m_xParser->appendFilterByColumn( m_xField, true, css::sdb::SQLFilterOperator::EQUAL ); }
private:
const FormOperations *m_pFO;
css::uno::Reference< css::beans::XPropertySet > m_xField;