Kaydet (Commit) 978c6e7a authored tarafından Noel Grandin's avatar Noel Grandin

update vclwidgets plugin to check local variables

Change-Id: I91f7fc6b8419c0ed82194726eeb4c4657e998f22
Reviewed-on: https://gerrit.libreoffice.org/30428Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 3b921a2c
......@@ -42,7 +42,7 @@ namespace dbaui
template < class T > class OSaveValueWrapper : public ISaveValueWrapper
{
T* m_pSaveValue;
VclPtr<T> m_pSaveValue;
public:
explicit OSaveValueWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue)
{ OSL_ENSURE(m_pSaveValue,"Illegal argument!"); }
......@@ -53,7 +53,7 @@ namespace dbaui
template < class T > class ODisableWrapper : public ISaveValueWrapper
{
T* m_pSaveValue;
VclPtr<T> m_pSaveValue;
public:
explicit ODisableWrapper(T* _pSaveValue) : m_pSaveValue(_pSaveValue)
{ OSL_ENSURE(m_pSaveValue,"Illegal argument!"); }
......
......@@ -161,7 +161,7 @@ namespace pcr
inline CommonBehaviourControl< TControlInterface, TControlWindow >::CommonBehaviourControl ( sal_Int16 _nControlType, vcl::Window* _pParentWindow, WinBits _nWindowStyle, bool _bDoSetHandlers)
:ComponentBaseClass( m_aMutex )
,CommonBehaviourControlHelper( _nControlType, *this )
,m_pControlWindow( new TControlWindow( _pParentWindow, _nWindowStyle ) )
,m_pControlWindow( VclPtr<TControlWindow>::Create( _pParentWindow, _nWindowStyle ) )
{
if ( _bDoSetHandlers )
{
......
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