clang: Result of operation is garbage or undefined
Change-Id: I49f58ae6a7c046af4c3de8d35219ffe2e4ba8f20
This commit is contained in:
@@ -208,7 +208,7 @@ PropertyState SAL_CALL ChainablePropertySet::getPropertyState( const OUString& P
|
||||
if( aIter == mpInfo->maMap.end())
|
||||
throw UnknownPropertyException( PropertyName, static_cast< XPropertySet* >( this ) );
|
||||
|
||||
PropertyState aState;
|
||||
PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
|
||||
|
||||
_preGetPropertyState();
|
||||
_getPropertyState( *((*aIter).second), aState );
|
||||
|
@@ -353,7 +353,7 @@ PropertyState SAL_CALL MasterPropertySet::getPropertyState( const OUString& Prop
|
||||
if( aIter == mpInfo->maMap.end())
|
||||
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 !
|
||||
{
|
||||
|
@@ -218,7 +218,7 @@ PropertyState SAL_CALL PropertySetHelper::getPropertyState( const OUString& Prop
|
||||
|
||||
aEntries[1] = NULL;
|
||||
|
||||
PropertyState aState;
|
||||
PropertyState aState(PropertyState_AMBIGUOUS_VALUE);
|
||||
_getPropertyStates( (const PropertyMapEntry**)aEntries, &aState );
|
||||
|
||||
return aState;
|
||||
|
@@ -1075,7 +1075,7 @@ void SvxLightCtl3D::CheckSelection()
|
||||
|
||||
if(bSelectionValid)
|
||||
{
|
||||
double fHor, fVer;
|
||||
double fHor(0.0), fVer(0.0);
|
||||
maLightControl.GetPosition(fHor, fVer);
|
||||
maHorScroller.SetThumbPos( sal_Int32(fHor * 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 )
|
||||
{
|
||||
double fHor, fVer;
|
||||
double fHor(0.0), fVer(0.0);
|
||||
|
||||
maLightControl.GetPosition(fHor, fVer);
|
||||
fHor += fDeltaHor;
|
||||
@@ -1275,7 +1275,7 @@ IMPL_LINK_NOARG(SvxLightCtl3D, ButtonPress)
|
||||
|
||||
IMPL_LINK_NOARG(SvxLightCtl3D, InternalInteractiveChange)
|
||||
{
|
||||
double fHor, fVer;
|
||||
double fHor(0.0), fVer(0.0);
|
||||
|
||||
maLightControl.GetPosition(fHor, fVer);
|
||||
maHorScroller.SetThumbPos( sal_Int32(fHor * 100.0) );
|
||||
|
Reference in New Issue
Block a user