vcl/unx/generic/dtrans/X11_clipboard.cxx |    3 +--
 vcl/unx/generic/dtrans/X11_clipboard.hxx |    4 +---
 vcl/unx/generic/dtrans/X11_service.cxx   |    4 ++--
 3 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 617e0cad198eaa6fbc007f1cbd9c40e539d29396
Author:     Michael Weghorn <[email protected]>
AuthorDate: Fri Feb 27 16:57:08 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Sat Feb 28 09:34:29 2026 +0100

    vcl: Use more concrete X11Clipboard type
    
    Change-Id: Ia3f946b25f9358813f38f084c85418186a56cf4c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200646
    Reviewed-by: Michael Weghorn <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx 
b/vcl/unx/generic/dtrans/X11_clipboard.cxx
index 769fb9cc41b6..8cb717212b0e 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.cxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx
@@ -52,8 +52,7 @@ X11Clipboard::X11Clipboard( SelectionManager& rManager, Atom 
aSelection ) :
 #endif
 }
 
-css::uno::Reference<css::datatransfer::clipboard::XClipboard>
-X11Clipboard::create( SelectionManager& rManager, Atom aSelection )
+rtl::Reference<X11Clipboard> X11Clipboard::create(SelectionManager& rManager, 
Atom aSelection)
 {
     rtl::Reference<X11Clipboard> cb(new X11Clipboard(rManager, aSelection));
     if( aSelection != None )
diff --git a/vcl/unx/generic/dtrans/X11_clipboard.hxx 
b/vcl/unx/generic/dtrans/X11_clipboard.hxx
index 04a6b5669358..1bad05339353 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.hxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.hxx
@@ -50,9 +50,7 @@ namespace x11 {
         void clearContents();
 
     public:
-
-        static css::uno::Reference<css::datatransfer::clipboard::XClipboard>
-        create( SelectionManager& rManager, Atom aSelection );
+        static rtl::Reference<X11Clipboard> create(SelectionManager& rManager, 
Atom aSelection);
 
         virtual ~X11Clipboard() override;
 
diff --git a/vcl/unx/generic/dtrans/X11_service.cxx 
b/vcl/unx/generic/dtrans/X11_service.cxx
index 2e0d0bb11984..a366019455af 100644
--- a/vcl/unx/generic/dtrans/X11_service.cxx
+++ b/vcl/unx/generic/dtrans/X11_service.cxx
@@ -61,11 +61,11 @@ X11SalInstance::CreateClipboard(ClipboardSelectionType 
eSelection)
     const OUString sel = eSelection == ClipboardSelectionType::Clipboard ? 
u"CLIPBOARD"_ustr : u"PRIMARY"_ustr;
     Atom nSelection = rManager.getAtom(sel);
 
-    std::unordered_map< Atom, css::uno::Reference< XClipboard > >::iterator it 
= m_aInstances.find( nSelection );
+    auto it = m_aInstances.find(nSelection);
     if( it != m_aInstances.end() )
         return it->second;
 
-    css::uno::Reference<css::datatransfer::clipboard::XClipboard> pClipboard = 
X11Clipboard::create( rManager, nSelection );
+    rtl::Reference<X11Clipboard> pClipboard = X11Clipboard::create(rManager, 
nSelection);
     m_aInstances[ nSelection ] = pClipboard;
 
     return pClipboard;

Reply via email to