diff options
-rw-r--r-- | sd/source/ui/framework/factories/FullScreenPane.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/presenter/PresenterHelper.cxx | 9 |
2 files changed, 8 insertions, 10 deletions
diff --git a/sd/source/ui/framework/factories/FullScreenPane.cxx b/sd/source/ui/framework/factories/FullScreenPane.cxx index 652930c6ce86..46795e792187 100644 --- a/sd/source/ui/framework/factories/FullScreenPane.cxx +++ b/sd/source/ui/framework/factories/FullScreenPane.cxx @@ -189,14 +189,13 @@ Reference<rendering::XCanvas> FullScreenPane::CreateCanvas() if (!pWindow) throw RuntimeException(); - Sequence<Any> aArg (5); + Sequence<Any> aArg(4); // common: first any is VCL pointer to window (for VCL canvas) aArg[0] <<= reinterpret_cast<sal_Int64>(pWindow.get()); - aArg[1] = Any(); - aArg[2] <<= css::awt::Rectangle(); - aArg[3] <<= false; - aArg[4] <<= mxWindow; + aArg[1] <<= css::awt::Rectangle(); + aArg[2] <<= false; + aArg[3] <<= mxWindow; Reference<lang::XMultiServiceFactory> xFactory ( mxComponentContext->getServiceManager(), UNO_QUERY_THROW); diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx index 6d621b8af4a9..9e5e54cca907 100644 --- a/sd/source/ui/presenter/PresenterHelper.cxx +++ b/sd/source/ui/presenter/PresenterHelper.cxx @@ -139,14 +139,13 @@ Reference<rendering::XCanvas> SAL_CALL PresenterHelper::createCanvas ( if (!pWindow) throw RuntimeException(); - Sequence<Any> aArg (5); + Sequence<Any> aArg(4); // common: first any is VCL pointer to window (for VCL canvas) aArg[0] <<= reinterpret_cast<sal_Int64>(pWindow.get()); - aArg[1] = Any(); - aArg[2] <<= css::awt::Rectangle(); - aArg[3] <<= false; - aArg[4] <<= rxWindow; + aArg[1] <<= css::awt::Rectangle(); + aArg[2] <<= false; + aArg[3] <<= rxWindow; Reference<lang::XMultiServiceFactory> xFactory ( mxComponentContext->getServiceManager(), UNO_QUERY_THROW); |