summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-01 09:41:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-01 17:19:48 +0100
commitb8c033869ede74b3855a1b91eceb80a78b53c8f3 (patch)
tree60de00b3b403f4620a4e1ac6582bea999564c8c1 /sfx2
parent1e923777a1beae71ea143d2d55cd0e02ed1e03e0 (diff)
coverity#708174 Uninitialized pointer field
Change-Id: I285e236c13ce3a95a1ca9644997fcccdb90daacf
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/impviewframe.hxx38
-rw-r--r--sfx2/source/view/viewfrm.cxx1
2 files changed, 23 insertions, 16 deletions
diff --git a/sfx2/source/view/impviewframe.hxx b/sfx2/source/view/impviewframe.hxx
index 35c65a54615c..d91a3a39725e 100644
--- a/sfx2/source/view/impviewframe.hxx
+++ b/sfx2/source/view/impviewframe.hxx
@@ -32,7 +32,6 @@ struct SfxViewFrame_Impl
SvBorder aBorder;
Size aMargin;
Size aSize;
- TypeId aLastType;
OUString aActualURL;
SfxFrame& rFrame;
svtools::AsynchronLink* pReloader;
@@ -54,21 +53,30 @@ struct SfxViewFrame_Impl
::boost::optional< bool >
aHasToolPanels;
- SfxViewFrame_Impl( SfxFrame& i_rFrame )
- : rFrame( i_rFrame )
- , pReloader(0 )
- , pWindow( 0 )
- , pActiveChild(0)
- , pFocusWin(0)
- , bWindowWasEnabled(true)
- , bActive( false )
- {
- }
+ SfxViewFrame_Impl(SfxFrame& i_rFrame)
+ : rFrame(i_rFrame)
+ , pReloader(0)
+ , pWindow(0)
+ , pActiveChild(0)
+ , pFocusWin(0)
+ , nDocViewNo(0)
+ , nCurViewId(0)
+ , bResizeInToOut(false)
+ , bDontOverwriteResizeInToOut(false)
+ , bObjLocked(false)
+ , bReloading(false)
+ , bIsDowning(false)
+ , bModal(false)
+ , bEnabled(false)
+ , bWindowWasEnabled(true)
+ , bActive(false)
+ {
+ }
- ~SfxViewFrame_Impl()
- {
- delete pReloader;
- }
+ ~SfxViewFrame_Impl()
+ {
+ delete pReloader;
+ }
};
class SfxFrameViewWindow_Impl : public Window
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index 2fdf5a6c8829..217ff18e1e47 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1081,7 +1081,6 @@ void SfxViewFrame::ReleaseObjectShell_Impl()
if ( xObjSh.Is() )
{
- pImp->aLastType = xObjSh->Type();
pDispatcher->Pop( *xObjSh );
SfxModule* pModule = xObjSh->GetModule();
if( pModule )