summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-07-31 21:16:54 +0300
committerTor Lillqvist <tml@collabora.com>2014-07-31 21:16:54 +0300
commit53e4b24c9ee9f2114bbc6b820ece4c469cd811d5 (patch)
tree6da3344076777ff0102a1a50441b879de9ea8755 /sd
parentwriterfilter: fix some -Werror=unused in previous patch (diff)
downloadcore-53e4b24c9ee9f2114bbc6b820ece4c469cd811d5.tar.gz
core-53e4b24c9ee9f2114bbc6b820ece4c469cd811d5.zip
WaE: 'aPageKind' may be used uninitialized in this function
Change-Id: Idb44259f11715b1d2c769bfebca7300cc397b7cf
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 82281ddaef13..97de832cd63f 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2276,7 +2276,7 @@ void SdXImpressDocument::setPartMode( LibreOfficeKitPartMode ePartMode )
return;
}
- PageKind aPageKind;
+ PageKind aPageKind( PK_STANDARD );
switch ( ePartMode )
{
case LOK_PARTMODE_EMBEDDEDOBJ:
@@ -2289,7 +2289,6 @@ void SdXImpressDocument::setPartMode( LibreOfficeKitPartMode ePartMode )
// And let's fall through in a normal build.
case LOK_PARTMODE_DEFAULT:
case LOK_PARTMODE_SLIDE:
- aPageKind = PK_STANDARD;
break;
case LOK_PARTMODE_SLIDENOTES:
aPageKind = PK_NOTES;