Kaydet (Commit) 06ec8a95 authored tarafından Noel Grandin's avatar Noel Grandin

add operator* to uno::Reference

like the other smart pointer types

Change-Id: I3ac1888c84fc1411cdfc3357b005afbb3b7d8bbe
Reviewed-on: https://gerrit.libreoffice.org/65926Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 162a472d
......@@ -471,7 +471,7 @@ namespace accessibility
else
aFont = m_pTabBar->GetFont();
VCLXFont* pVCLXFont = new VCLXFont;
pVCLXFont->Init( *xDev.get(), aFont );
pVCLXFont->Init( *xDev, aFont );
xFont = pVCLXFont;
}
}
......
......@@ -310,7 +310,7 @@ Reference< awt::XFont > OAccessibleMenuComponent::getFont( )
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
VCLXFont* pVCLXFont = new VCLXFont;
pVCLXFont->Init( *xDev.get(), rStyleSettings.GetMenuFont() );
pVCLXFont->Init( *xDev, rStyleSettings.GetMenuFont() );
xFont = pVCLXFont;
}
}
......
......@@ -421,6 +421,16 @@ public:
return castFromXInterface(_pInterface);
}
/** Indirection operator.
@since LibreOffice 6.3
@return UNacquired interface reference
*/
interface_type & SAL_CALL operator * () const {
assert(_pInterface != NULL);
return *castFromXInterface(_pInterface);
}
/** Gets interface pointer. This call does not acquire the interface.
@return UNacquired interface pointer
......
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