summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-26 10:26:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 16:29:14 +0100
commit42bcbee2e6c71c766054bfd786d85302293b5b99 (patch)
tree14d4dc212272f0d173bf21b687eca4541d2552cd
parenta7fcb3ed07f535ebbd4e74b423fb6ccbb47e78cb (diff)
clang: Result of operation is garbage or undefined
Change-Id: I49f58ae6a7c046af4c3de8d35219ffe2e4ba8f20
-rw-r--r--comphelper/source/property/ChainablePropertySet.cxx2
-rw-r--r--comphelper/source/property/MasterPropertySet.cxx2
-rw-r--r--comphelper/source/property/propertysethelper.cxx2
-rw-r--r--svx/source/dialog/dlgctl3d.cxx6
4 files changed, 6 insertions, 6 deletions
diff --git a/comphelper/source/property/ChainablePropertySet.cxx b/comphelper/source/property/ChainablePropertySet.cxx
index 53ee49740dda..1f29c4abd478 100644
--- a/comphelper/source/property/ChainablePropertySet.cxx
+++ b/comphelper/source/property/ChainablePropertySet.cxx
@@ -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 );
diff --git a/comphelper/source/property/MasterPropertySet.cxx b/comphelper/source/property/MasterPropertySet.cxx
index fea31d35f5b1..c5a59da90cbc 100644
--- a/comphelper/source/property/MasterPropertySet.cxx
+++ b/comphelper/source/property/MasterPropertySet.cxx
@@ -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 !
{
diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx
index eb07e504d8d5..b85fe96ac4a7 100644
--- a/comphelper/source/property/propertysethelper.cxx
+++ b/comphelper/source/property/propertysethelper.cxx
@@ -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;
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx
index f912768db75c..bb155c3691ff 100644
--- a/svx/source/dialog/dlgctl3d.cxx
+++ b/svx/source/dialog/dlgctl3d.cxx
@@ -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) );