Adapt Windows-only code
...to b8793748b0eaaa3fe405587fcb2a3021adab833b "Seems more natural to pass a homogenous list by initializer_list" Change-Id: I1c6816a442b57572a307251de1de5652a9d2a63a
This commit is contained in:
parent
4f4a4d7eb6
commit
8f7025b50f
@ -55,6 +55,8 @@
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
namespace sdecl = comphelper::service_decl;
|
||||
|
||||
namespace dxcanvas
|
||||
{
|
||||
/// Actual canonical implementation of the GraphicsProvider interface
|
||||
@ -217,7 +219,6 @@ namespace dxcanvas
|
||||
return xRet;
|
||||
}
|
||||
|
||||
namespace sdecl = comphelper::service_decl;
|
||||
sdecl::class_<Canvas, sdecl::with_args<true> > serviceImpl1(&initCanvas);
|
||||
const sdecl::ServiceDecl dxCanvasDecl(
|
||||
serviceImpl1,
|
||||
@ -244,7 +245,7 @@ extern "C"
|
||||
SAL_DLLPUBLIC_EXPORT void* SAL_CALL gdipluscanvas_component_getFactory( sal_Char const* pImplName,
|
||||
void*, void* )
|
||||
{
|
||||
return component_getFactoryHelper( pImplName, dxcanvas::dxCanvasDecl, dxcanvas::dxBitmapCanvasDecl );
|
||||
return sdecl::component_getFactoryHelper( pImplName, {&dxcanvas::dxCanvasDecl, &dxcanvas::dxBitmapCanvasDecl} );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@ -49,6 +49,8 @@
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
namespace sdecl = comphelper::service_decl;
|
||||
|
||||
namespace dxcanvas
|
||||
{
|
||||
SpriteCanvas::SpriteCanvas( const uno::Sequence< uno::Any >& aArguments,
|
||||
@ -178,7 +180,6 @@ namespace dxcanvas
|
||||
return xRet;
|
||||
}
|
||||
|
||||
namespace sdecl = comphelper::service_decl;
|
||||
sdecl::class_<SpriteCanvas, sdecl::with_args<true> > serviceImpl(&initCanvas);
|
||||
const sdecl::ServiceDecl dxSpriteCanvasDecl(
|
||||
serviceImpl,
|
||||
@ -191,7 +192,7 @@ extern "C"
|
||||
SAL_DLLPUBLIC_EXPORT void* SAL_CALL directx9canvas_component_getFactory( sal_Char const* pImplName,
|
||||
void*, void* )
|
||||
{
|
||||
return component_getFactoryHelper( pImplName, dxcanvas::dxSpriteCanvasDecl );
|
||||
return sdecl::component_getFactoryHelper( pImplName, {&dxcanvas::dxSpriteCanvasDecl} );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Loading…
x
Reference in New Issue
Block a user