summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:24:51 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-01 05:26:08 +0100
commit2e29906567cef053e608588830ddfb013cb53682 (patch)
treecae4aa3aaf9f318ceb6f0a80953d6174e494a394 /vcl/unx/generic
parent1be268f3ec7661be232b8f5dc18546d1410dfd52 (diff)
Prepare for removal of non-const operator[] from Sequence in vcl
Change-Id: I65f411affcf0340c054d09426483d57c530edb0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124411 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/dtrans/X11_service.cxx3
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx9
2 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/generic/dtrans/X11_service.cxx b/vcl/unx/generic/dtrans/X11_service.cxx
index c05773dbad80..6738245cde6c 100644
--- a/vcl/unx/generic/dtrans/X11_service.cxx
+++ b/vcl/unx/generic/dtrans/X11_service.cxx
@@ -55,8 +55,7 @@ css::uno::Reference< XInterface > X11SalInstance::CreateClipboard( const Sequenc
return SalInstance::CreateClipboard( arguments );
SelectionManager& rManager = SelectionManager::get();
- css::uno::Sequence<css::uno::Any> mgrArgs(1);
- mgrArgs[0] <<= Application::GetDisplayConnection();
+ css::uno::Sequence<css::uno::Any> mgrArgs{ css::uno::Any(Application::GetDisplayConnection()) };
rManager.initialize(mgrArgs);
OUString sel;
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 31567d63461a..43198c579bae 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -561,10 +561,11 @@ cairo::SurfaceSharedPtr X11SalGraphics::CreateBitmapSurface( const OutputDevice&
css::uno::Any X11SalGraphics::GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& /*rSize*/) const
{
cairo::X11Surface& rXlibSurface=dynamic_cast<cairo::X11Surface&>(*rSurface);
- css::uno::Sequence< css::uno::Any > args( 3 );
- args[0] <<= false; // do not call XFreePixmap on it
- args[1] <<= sal_Int64(rXlibSurface.getPixmap()->mhDrawable);
- args[2] <<= sal_Int32( rXlibSurface.getDepth() );
+ css::uno::Sequence< css::uno::Any > args{
+ css::uno::Any(false), // do not call XFreePixmap on it
+ css::uno::Any(sal_Int64(rXlibSurface.getPixmap()->mhDrawable)),
+ css::uno::Any(sal_Int32( rXlibSurface.getDepth() ))
+ };
return css::uno::Any(args);
}