[Libreoffice-commits] core.git: include/vcl

Stephan Bergmann sbergman at redhat.com
Mon Jul 11 10:14:58 UTC 2016


 include/vcl/uitest/uiobject.hxx |    4 ++++
 include/vcl/vclevent.hxx        |    3 +++
 2 files changed, 7 insertions(+)

New commits:
commit db1be55072a792c536841f02af0bc7da362aa4fc
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 11 12:11:39 2016 +0200

    Prevent MSC from instantiating implicitly defined DLLPUBLIC member functions
    
    ...which would require some classes to be complete which are usually incomplete
    here and only happen to be complete with (implicit, on Windows) --enable-pch.
    
    Change-Id: I653d6376e9ee1a8509c0f1a0096af4559ef0702e

diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx
index 011a2d4..a8c35be 100644
--- a/include/vcl/uitest/uiobject.hxx
+++ b/include/vcl/uitest/uiobject.hxx
@@ -35,7 +35,11 @@ typedef std::map<const OUString, OUString> StringMap;
  */
 class UITEST_DLLPUBLIC UIObject
 {
+    UIObject(UIObject &) = delete;
+    void operator =(UIObject) = delete;
+
 public:
+    UIObject() = default;
 
     virtual ~UIObject();
 
diff --git a/include/vcl/vclevent.hxx b/include/vcl/vclevent.hxx
index b376054..7c1cd5e 100644
--- a/include/vcl/vclevent.hxx
+++ b/include/vcl/vclevent.hxx
@@ -225,6 +225,9 @@ private:
     VclPtr<Menu> pMenu;
     sal_uInt16 mnPos;
 
+    VclMenuEvent(VclMenuEvent &) = delete;
+    void operator =(VclMenuEvent) = delete;
+
 public:
     VclMenuEvent( Menu* pM, sal_uLong n, sal_uInt16 nPos );
     virtual ~VclMenuEvent();


More information about the Libreoffice-commits mailing list