[Libreoffice-commits] core.git: desktop/source

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 12 07:35:01 UTC 2019


 desktop/source/lib/lokclipboard.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 78e369cc261fd83f2259a70b2589b928b59090f0
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Sep 11 23:48:25 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Sep 12 09:34:21 2019 +0200

    desktop: mark LOKClipboard as final
    
    Otherwise the virtual member function calls in the constructor would be
    dangerous.
    
    Change-Id: I2fece2ca5718deafe0b88a774208c553e630b411
    Reviewed-on: https://gerrit.libreoffice.org/78824
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/desktop/source/lib/lokclipboard.hxx b/desktop/source/lib/lokclipboard.hxx
index 35a72ae40a4a..0c237d822383 100644
--- a/desktop/source/lib/lokclipboard.hxx
+++ b/desktop/source/lib/lokclipboard.hxx
@@ -22,7 +22,7 @@
 using namespace css::uno;
 
 /// A clipboard implementation for LibreOfficeKit.
-class LOKClipboard
+class LOKClipboard final
     : public cppu::WeakComponentImplHelper<css::datatransfer::clipboard::XSystemClipboard,
                                            css::lang::XServiceInfo>
 {


More information about the Libreoffice-commits mailing list