Kaydet (Commit) 8f7025b5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Adapt Windows-only code

...to b8793748 "Seems more natural to pass a
homogenous list by initializer_list"

Change-Id: I1c6816a442b57572a307251de1de5652a9d2a63a
üst 4f4a4d7e
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace sdecl = comphelper::service_decl;
namespace dxcanvas namespace dxcanvas
{ {
/// Actual canonical implementation of the GraphicsProvider interface /// Actual canonical implementation of the GraphicsProvider interface
...@@ -217,7 +219,6 @@ namespace dxcanvas ...@@ -217,7 +219,6 @@ namespace dxcanvas
return xRet; return xRet;
} }
namespace sdecl = comphelper::service_decl;
sdecl::class_<Canvas, sdecl::with_args<true> > serviceImpl1(&initCanvas); sdecl::class_<Canvas, sdecl::with_args<true> > serviceImpl1(&initCanvas);
const sdecl::ServiceDecl dxCanvasDecl( const sdecl::ServiceDecl dxCanvasDecl(
serviceImpl1, serviceImpl1,
...@@ -244,7 +245,7 @@ extern "C" ...@@ -244,7 +245,7 @@ extern "C"
SAL_DLLPUBLIC_EXPORT void* SAL_CALL gdipluscanvas_component_getFactory( sal_Char const* pImplName, SAL_DLLPUBLIC_EXPORT void* SAL_CALL gdipluscanvas_component_getFactory( sal_Char const* pImplName,
void*, void* ) 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: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
using namespace ::com::sun::star; using namespace ::com::sun::star;
namespace sdecl = comphelper::service_decl;
namespace dxcanvas namespace dxcanvas
{ {
SpriteCanvas::SpriteCanvas( const uno::Sequence< uno::Any >& aArguments, SpriteCanvas::SpriteCanvas( const uno::Sequence< uno::Any >& aArguments,
...@@ -178,7 +180,6 @@ namespace dxcanvas ...@@ -178,7 +180,6 @@ namespace dxcanvas
return xRet; return xRet;
} }
namespace sdecl = comphelper::service_decl;
sdecl::class_<SpriteCanvas, sdecl::with_args<true> > serviceImpl(&initCanvas); sdecl::class_<SpriteCanvas, sdecl::with_args<true> > serviceImpl(&initCanvas);
const sdecl::ServiceDecl dxSpriteCanvasDecl( const sdecl::ServiceDecl dxSpriteCanvasDecl(
serviceImpl, serviceImpl,
...@@ -191,7 +192,7 @@ extern "C" ...@@ -191,7 +192,7 @@ extern "C"
SAL_DLLPUBLIC_EXPORT void* SAL_CALL directx9canvas_component_getFactory( sal_Char const* pImplName, SAL_DLLPUBLIC_EXPORT void* SAL_CALL directx9canvas_component_getFactory( sal_Char const* pImplName,
void*, void* ) void*, void* )
{ {
return component_getFactoryHelper( pImplName, dxcanvas::dxSpriteCanvasDecl ); return sdecl::component_getFactoryHelper( pImplName, {&dxcanvas::dxSpriteCanvasDecl} );
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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