summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-27 17:04:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-27 17:22:09 +0100
commit78bea877ff9471d7308041e65e0d6864a862c91b (patch)
treef4edfd125043242992c12ffc14e5214c0469affd /svtools
parentb733d208b02facaaad8c4925277b34b9f7fd928f (diff)
OSL_ENSURE->assert where guaranteed deref follows
Change-Id: I6e007cc3a9fd222c1c1381c8b4f890966c05cbab
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/valueacc.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index f0d7ede91cc7..585908b4a0e8 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -776,35 +776,23 @@ void ValueSetAcc::ThrowIfDisposed (void)
}
}
-
-
-bool ValueSetAcc::HasNoneField (void) const
+bool ValueSetAcc::HasNoneField() const
{
- DBG_ASSERT (mpParent!=NULL, "ValueSetAcc::HasNoneField called with mpParent==NULL");
+ assert(mpParent && "ValueSetAcc::HasNoneField called with mpParent==NULL");
return ((mpParent->GetStyle() & WB_NONEFIELD) != 0);
}
-
-
-
-
// - ValueItemAcc -
-
-
ValueItemAcc::ValueItemAcc( ValueSetItem* pParent, bool bIsTransientChildrenDisabled ) :
mpParent( pParent ),
mbIsTransientChildrenDisabled( bIsTransientChildrenDisabled )
{
}
-
-
ValueItemAcc::~ValueItemAcc()
{
}
-
-
void ValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue, const uno::Any& rNewValue )
{
if( nEventId )