loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: Idbd718042e13e9c107c1a349c113656bf9468614
This commit is contained in:
@@ -91,7 +91,7 @@ void SAL_CALL PropertySetHelper::setPropertyValue( const OUString& aPropertyName
|
|||||||
|
|
||||||
aEntries[1] = NULL;
|
aEntries[1] = NULL;
|
||||||
|
|
||||||
_setPropertyValues( (const PropertyMapEntry**)aEntries, &aValue );
|
_setPropertyValues( aEntries, &aValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SAL_CALL PropertySetHelper::getPropertyValue( const OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception)
|
Any SAL_CALL PropertySetHelper::getPropertyValue( const OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception)
|
||||||
@@ -105,7 +105,7 @@ Any SAL_CALL PropertySetHelper::getPropertyValue( const OUString& PropertyName )
|
|||||||
aEntries[1] = NULL;
|
aEntries[1] = NULL;
|
||||||
|
|
||||||
Any aAny;
|
Any aAny;
|
||||||
_getPropertyValues( (const PropertyMapEntry**)aEntries, &aAny );
|
_getPropertyValues( aEntries, &aAny );
|
||||||
|
|
||||||
return aAny;
|
return aAny;
|
||||||
}
|
}
|
||||||
@@ -154,7 +154,7 @@ void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< OUString >&
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( !bUnknown )
|
if( !bUnknown )
|
||||||
_setPropertyValues( (const PropertyMapEntry**)pEntries.get(), rValues.getConstArray() );
|
_setPropertyValues( pEntries.get(), rValues.getConstArray() );
|
||||||
|
|
||||||
if( bUnknown )
|
if( bUnknown )
|
||||||
throw RuntimeException( *pNames, static_cast< XPropertySet* >( this ) );
|
throw RuntimeException( *pNames, static_cast< XPropertySet* >( this ) );
|
||||||
@@ -184,7 +184,7 @@ Sequence< Any > SAL_CALL PropertySetHelper::getPropertyValues(const Sequence< OU
|
|||||||
if( !bUnknown )
|
if( !bUnknown )
|
||||||
{
|
{
|
||||||
aValues.realloc(nCount);
|
aValues.realloc(nCount);
|
||||||
_getPropertyValues( (const PropertyMapEntry**)pEntries.get(), aValues.getArray() );
|
_getPropertyValues( pEntries.get(), aValues.getArray() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( bUnknown )
|
if( bUnknown )
|
||||||
@@ -221,7 +221,7 @@ PropertyState SAL_CALL PropertySetHelper::getPropertyState( const OUString& Prop
|
|||||||
aEntries[1] = NULL;
|
aEntries[1] = NULL;
|
||||||
|
|
||||||
PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
|
PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
|
||||||
_getPropertyStates( (const PropertyMapEntry**)aEntries, &aState );
|
_getPropertyStates( aEntries, &aState );
|
||||||
|
|
||||||
return aState;
|
return aState;
|
||||||
}
|
}
|
||||||
@@ -250,7 +250,7 @@ Sequence< PropertyState > SAL_CALL PropertySetHelper::getPropertyStates( const S
|
|||||||
pEntries[nCount] = NULL;
|
pEntries[nCount] = NULL;
|
||||||
|
|
||||||
if( !bUnknown )
|
if( !bUnknown )
|
||||||
_getPropertyStates( (const PropertyMapEntry**)pEntries.get(), aStates.getArray() );
|
_getPropertyStates( pEntries.get(), aStates.getArray() );
|
||||||
|
|
||||||
if( bUnknown )
|
if( bUnknown )
|
||||||
throw UnknownPropertyException( *pNames, static_cast< XPropertySet* >( this ) );
|
throw UnknownPropertyException( *pNames, static_cast< XPropertySet* >( this ) );
|
||||||
|
Reference in New Issue
Block a user