Kaydet (Commit) 746b518c authored tarafından Michael Meeks's avatar Michael Meeks

More misc. cleanup.

Change-Id: I91d2c45a7082fd989f440fff9e1322e4571dc2b2
üst 14168dfb
...@@ -624,7 +624,7 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow ...@@ -624,7 +624,7 @@ void VCLXAccessibleToolBox::ProcessWindowEvent( const VclWindowEvent& rVclWindow
VCLXAccessibleToolBox* pParent = static_cast< VCLXAccessibleToolBox* >( VCLXAccessibleToolBox* pParent = static_cast< VCLXAccessibleToolBox* >(
pWin->GetParent()->GetAccessible()->getAccessibleContext().get() ); pWin->GetParent()->GetAccessible()->getAccessibleContext().get() );
if ( pParent ) if ( pParent )
pParent->ReleaseSubToolBox(static_cast<ToolBox *>(pWin)); pParent->ReleaseSubToolBox(static_cast<ToolBox *>(pWin.get()));
} }
// dispose all items // dispose all items
......
...@@ -629,7 +629,7 @@ void SplashScreenWindow::Paint( const Rectangle&) ...@@ -629,7 +629,7 @@ void SplashScreenWindow::Paint( const Rectangle&)
} }
if( (DrawNativeControl( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aDrawRect, if( (DrawNativeControl( CTRL_INTROPROGRESS, PART_ENTIRE_CONTROL, aDrawRect,
ControlState::ENABLED, aValue, _sProgressText )) ) ControlState::ENABLED, aValue, pSpl->_sProgressText )) )
{ {
return; return;
} }
......
...@@ -107,9 +107,9 @@ namespace cairo ...@@ -107,9 +107,9 @@ namespace cairo
mpGraphics->WidgetQueueDraw(); mpGraphics->WidgetQueueDraw();
} }
boost::shared_ptr<VirtualDevice> Gtk3Surface::createVirtualDevice() const VclPtr<VirtualDevice> Gtk3Surface::createVirtualDevice() const
{ {
return boost::shared_ptr<VirtualDevice>(new VirtualDevice(NULL, Size(1, 1), 0)); return VclPtrInstance<VirtualDevice>(nullptr, Size(1, 1), 0);
} }
} }
......
...@@ -1457,8 +1457,8 @@ public: ...@@ -1457,8 +1457,8 @@ public:
DemoWidgets() : DemoWidgets() :
WorkWindow(NULL, WB_STDWORK), WorkWindow(NULL, WB_STDWORK),
mpBox(VclPtrInstance<VclVBox>(this, false, 3)), mpBox(VclPtrInstance<VclVBox>(this, false, 3)),
mpToolbox(VclPtrInstance<ToolBox>(mpBox)), mpToolbox(VclPtrInstance<ToolBox>(mpBox.get())),
mpButton(VclPtrInstance<PushButton>(mpBox)) mpButton(VclPtrInstance<PushButton>(mpBox.get()))
{ {
SetText("VCL widget demo"); SetText("VCL widget demo");
...@@ -1503,7 +1503,7 @@ public: ...@@ -1503,7 +1503,7 @@ public:
DrawWallpaper(aWholeSize, aWallpaper); DrawWallpaper(aWholeSize, aWallpaper);
Pop(); Pop();
ScopedVclPtr< VirtualDevice > pDev(new VirtualDevice(*this)); ScopedVclPtrInstance< VirtualDevice > pDev(*this);
pDev->EnableRTL(IsRTLEnabled()); pDev->EnableRTL(IsRTLEnabled());
pDev->SetOutputSizePixel(aExclude.GetSize()); pDev->SetOutputSizePixel(aExclude.GetSize());
...@@ -1617,19 +1617,22 @@ public: ...@@ -1617,19 +1617,22 @@ public:
} }
ScopedVclPtrInstance<DemoWin> aMainWin(aRenderer, bThreads); ScopedVclPtrInstance<DemoWin> aMainWin(aRenderer, bThreads);
VclPtr<DemoWidgets> aWidgets; VclPtr<DemoWidgets> xWidgets;
VclPtr<DemoPopup> xPopup; VclPtr<DemoPopup> xPopup;
aMainWin->SetText("Interactive VCL demo #1"); aMainWin->SetText("Interactive VCL demo #1");
if (bWidgets) if (bWidgets)
xWidgets.reset(new DemoWidgets()); xWidgets = VclPtrInstance< DemoWidgets > ();
else if (bPopup) else if (bPopup)
xPopup.reset(new DemoPopup()); xPopup = VclPtrInstance< DemoPopup> ();
else else
aMainWin->Show(); aMainWin->Show();
Application::Execute(); Application::Execute();
xWidgets.disposeAndClear();
xPopup.disposeAndClear();
} }
catch (const css::uno::Exception& e) catch (const css::uno::Exception& e)
{ {
......
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