Kaydet (Commit) 4eb16dab authored tarafından Noel Grandin's avatar Noel Grandin

wrap some static fields in VclPtr

Change-Id: I2df0929d1b34b9ebf2d5d4c27321abdea072007a
üst 6850e9b8
......@@ -51,7 +51,7 @@
// STATIC DATA -----------------------------------------------------------
static ScEditWindow* pActiveEdWnd = NULL;
static VclPtr<ScEditWindow> pActiveEdWnd = NULL;
// class ScHFEditPage
......
......@@ -48,7 +48,7 @@
#include <boost/scoped_ptr.hpp>
// STATIC DATA -----------------------------------------------------------
static ScEditWindow* pActiveEdWnd = NULL;
static VclPtr<ScEditWindow> pActiveEdWnd = NULL;
ScEditWindow* GetScEditWindow ()
{
......
......@@ -187,8 +187,8 @@ class SW_DLLPUBLIC SwViewShell : public sw::Ring<SwViewShell>
SAL_DLLPRIVATE void ImplApplyViewOptions( const SwViewOption &rOpt );
protected:
static ShellResource* mpShellRes; ///< Resources for the Shell.
static vcl::Window* mpCareWindow; ///< Avoid this window.
static ShellResource* mpShellRes; ///< Resources for the Shell.
static VclPtr<vcl::Window> mpCareWindow; ///< Avoid this window.
SwRect maVisArea; ///< The modern version of VisArea.
SwDoc *mpDoc; ///< The document; never 0.
......@@ -440,9 +440,9 @@ public:
static ShellResource* GetShellRes();
static void SetCareWin( vcl::Window* pNew );
static vcl::Window* GetCareWin(SwViewShell& rVSh)
{ return mpCareWindow ? mpCareWindow : CareChildWin(rVSh); }
static vcl::Window* CareChildWin(SwViewShell& rVSh);
static vcl::Window* GetCareWin(SwViewShell& rVSh)
{ return mpCareWindow ? mpCareWindow.get() : CareChildWin(rVSh); }
static vcl::Window* CareChildWin(SwViewShell& rVSh);
inline SfxViewShell *GetSfxViewShell() { return mpSfxViewShell; }
inline void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
......
......@@ -85,7 +85,7 @@
bool SwViewShell::mbLstAct = false;
ShellResource *SwViewShell::mpShellRes = 0;
vcl::Window *SwViewShell::mpCareWindow = 0;
VclPtr<vcl::Window> SwViewShell::mpCareWindow = nullptr;
BitmapEx* SwViewShell::mpErrorBmp = NULL;
BitmapEx* SwViewShell::mpReplaceBmp = NULL;
......
......@@ -153,14 +153,14 @@ class SW_DLLPUBLIC SwView: public SfxViewShell
friend class SwClipboardChangeListener;
// search & replace
static SvxSearchDialog *m_pSrchDlg;
static SvxSearchItem *m_pSrchItem;
static sal_uInt16 m_nInsertCtrlState;
static sal_uInt16 m_nWebInsertCtrlState;
static sal_uInt16 m_nInsertObjectCtrlState;
static sal_uInt16 m_nInsertFieldCtrlState;
static sal_uInt16 m_nMoveType; // for buttons below the scrollbar (viewmdi)
static VclPtr<SvxSearchDialog> m_pSrchDlg;
static SvxSearchItem *m_pSrchItem;
static sal_uInt16 m_nInsertCtrlState;
static sal_uInt16 m_nWebInsertCtrlState;
static sal_uInt16 m_nInsertObjectCtrlState;
static sal_uInt16 m_nInsertFieldCtrlState;
static sal_uInt16 m_nMoveType; // for buttons below the scrollbar (viewmdi)
static sal_Int32 m_nActMark; // current jump mark for unknown mark
static bool m_bExtra;
......
......@@ -36,6 +36,7 @@
#include <sfx2/printer.hxx>
#include <sfx2/app.hxx>
#include <svx/ruler.hxx>
#include <svx/srchdlg.hxx>
#include <editeng/protitem.hxx>
#include <svx/fmshell.hxx>
#include <svx/extrusionbar.hxx>
......@@ -135,9 +136,9 @@ bool SwView::m_bExtra = false;
bool SwView::m_bFound = false;
bool SwView::m_bJustOpened = false;
SvxSearchDialog* SwView::m_pSrchDlg = 0;
SearchAttrItemList* SwView::m_pSrchList = 0;
SearchAttrItemList* SwView::m_pReplList = 0;
VclPtr<SvxSearchDialog> SwView::m_pSrchDlg = nullptr;
SearchAttrItemList* SwView::m_pSrchList = 0;
SearchAttrItemList* SwView::m_pReplList = 0;
inline SfxDispatcher &SwView::GetDispatcher()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment