summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-animations.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/sd/source/filter/eppt/pptx-animations.cxx b/sd/source/filter/eppt/pptx-animations.cxx
index f809b6222484..0badff184841 100644
--- a/sd/source/filter/eppt/pptx-animations.cxx
+++ b/sd/source/filter/eppt/pptx-animations.cxx
@@ -101,8 +101,8 @@ void WriteAnimationProperty(const FSHelperPtr& pFS, const Any& rAny, sal_Int32 n
return;
}
- sal_uInt32 nRgb;
- double fDouble;
+ sal_Int32 nRgb = {}; // spurious -Werror=maybe-uninitialized
+ double fDouble = {}; // spurious -Werror=maybe-uninitialized
TypeClass aClass = rAny.getValueType().getTypeClass();
bool bWriteToken
@@ -115,11 +115,17 @@ void WriteAnimationProperty(const FSHelperPtr& pFS, const Any& rAny, sal_Int32 n
switch (rAny.getValueType().getTypeClass())
{
case TypeClass_LONG:
- rAny >>= nRgb;
+ if (!(rAny >>= nRgb))
+ {
+ assert(false);
+ }
pFS->singleElementNS(XML_a, XML_srgbClr, XML_val, I32SHEX(nRgb));
break;
case TypeClass_DOUBLE:
- rAny >>= fDouble;
+ if (!(rAny >>= fDouble))
+ {
+ assert(false);
+ }
pFS->singleElementNS(XML_p, XML_fltVal, XML_val, OString::number(fDouble));
break;
case TypeClass_STRING: