clang: Result of operation is garbage or undefined

Change-Id: I49f58ae6a7c046af4c3de8d35219ffe2e4ba8f20
This commit is contained in:
Caolán McNamara
2014-06-26 10:26:05 +01:00
parent a7fcb3ed07
commit 42bcbee2e6
4 changed files with 6 additions and 6 deletions

View File

@@ -208,7 +208,7 @@ PropertyState SAL_CALL ChainablePropertySet::getPropertyState( const OUString& P
if( aIter == mpInfo->maMap.end()) if( aIter == mpInfo->maMap.end())
throw UnknownPropertyException( PropertyName, static_cast< XPropertySet* >( this ) ); throw UnknownPropertyException( PropertyName, static_cast< XPropertySet* >( this ) );
PropertyState aState; PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
_preGetPropertyState(); _preGetPropertyState();
_getPropertyState( *((*aIter).second), aState ); _getPropertyState( *((*aIter).second), aState );

View File

@@ -353,7 +353,7 @@ PropertyState SAL_CALL MasterPropertySet::getPropertyState( const OUString& Prop
if( aIter == mpInfo->maMap.end()) if( aIter == mpInfo->maMap.end())
throw UnknownPropertyException( PropertyName, static_cast< XPropertySet* >( this ) ); throw UnknownPropertyException( PropertyName, static_cast< XPropertySet* >( this ) );
PropertyState aState; PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
if ( (*aIter).second->mnMapId == 0 ) // 0 means it's one of ours ! if ( (*aIter).second->mnMapId == 0 ) // 0 means it's one of ours !
{ {

View File

@@ -218,7 +218,7 @@ PropertyState SAL_CALL PropertySetHelper::getPropertyState( const OUString& Prop
aEntries[1] = NULL; aEntries[1] = NULL;
PropertyState aState; PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
_getPropertyStates( (const PropertyMapEntry**)aEntries, &aState ); _getPropertyStates( (const PropertyMapEntry**)aEntries, &aState );
return aState; return aState;

View File

@@ -1075,7 +1075,7 @@ void SvxLightCtl3D::CheckSelection()
if(bSelectionValid) if(bSelectionValid)
{ {
double fHor, fVer; double fHor(0.0), fVer(0.0);
maLightControl.GetPosition(fHor, fVer); maLightControl.GetPosition(fHor, fVer);
maHorScroller.SetThumbPos( sal_Int32(fHor * 100.0) ); maHorScroller.SetThumbPos( sal_Int32(fHor * 100.0) );
maVerScroller.SetThumbPos( 18000 - sal_Int32((fVer + 90.0) * 100.0) ); maVerScroller.SetThumbPos( 18000 - sal_Int32((fVer + 90.0) * 100.0) );
@@ -1084,7 +1084,7 @@ void SvxLightCtl3D::CheckSelection()
void SvxLightCtl3D::move( double fDeltaHor, double fDeltaVer ) void SvxLightCtl3D::move( double fDeltaHor, double fDeltaVer )
{ {
double fHor, fVer; double fHor(0.0), fVer(0.0);
maLightControl.GetPosition(fHor, fVer); maLightControl.GetPosition(fHor, fVer);
fHor += fDeltaHor; fHor += fDeltaHor;
@@ -1275,7 +1275,7 @@ IMPL_LINK_NOARG(SvxLightCtl3D, ButtonPress)
IMPL_LINK_NOARG(SvxLightCtl3D, InternalInteractiveChange) IMPL_LINK_NOARG(SvxLightCtl3D, InternalInteractiveChange)
{ {
double fHor, fVer; double fHor(0.0), fVer(0.0);
maLightControl.GetPosition(fHor, fVer); maLightControl.GetPosition(fHor, fVer);
maHorScroller.SetThumbPos( sal_Int32(fHor * 100.0) ); maHorScroller.SetThumbPos( sal_Int32(fHor * 100.0) );