diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-07-31 21:16:54 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-07-31 21:16:54 +0300 |
commit | 53e4b24c9ee9f2114bbc6b820ece4c469cd811d5 (patch) | |
tree | 6da3344076777ff0102a1a50441b879de9ea8755 /sd | |
parent | 3bc61ac26f00e5bc3c7ae4ab8a44d0d7e519e2c1 (diff) |
WaE: 'aPageKind' may be used uninitialized in this function
Change-Id: Idb44259f11715b1d2c769bfebca7300cc397b7cf
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
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; |