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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 7 10:13:54 UTC 2021


 vcl/inc/font/PhysicalFontFamily.hxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 1ef671c5a2f4b629ba6e280c5036ba781cc8787c
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Oct 6 22:34:16 2021 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Oct 7 12:13:21 2021 +0200

    Delete copy ctors/assignments for DLLEXPORT class
    
    Same as ee405fb2ef36337851801f1bd34411c606d55988 for
    GraphicHelper, but this time for PhysicalFontFamily.
    
    Change-Id: I7a9d6f0cdee29b754244ab6260f78bb7d8deb488
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123195
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/vcl/inc/font/PhysicalFontFamily.hxx b/vcl/inc/font/PhysicalFontFamily.hxx
index a3c4d0b90a31..7bbcf566c395 100644
--- a/vcl/inc/font/PhysicalFontFamily.hxx
+++ b/vcl/inc/font/PhysicalFontFamily.hxx
@@ -66,6 +66,13 @@ public:
     PhysicalFontFamily(const OUString& rSearchName);
     ~PhysicalFontFamily();
 
+    // Avoid implicitly defined copy constructors/assignments for the DLLPUBLIC class (they may
+    // require forward-declared classes used internally to be defined in places using this)
+    PhysicalFontFamily(const PhysicalFontFamily&) = delete;
+    PhysicalFontFamily(PhysicalFontFamily&&) = delete;
+    PhysicalFontFamily& operator=(const PhysicalFontFamily&) = delete;
+    PhysicalFontFamily& operator=(PhysicalFontFamily&&) = delete;
+
     const OUString& GetFamilyName() const { return maFamilyName; }
     const OUString& GetSearchName() const { return maSearchName; }
     const OUString& GetAliasNames() const { return maMapNames; }


More information about the Libreoffice-commits mailing list