Fix --disable-pch build: explicitly delete move constructor
commit0c87c0b87a3bbc2c57b2dd65ba2dd0aeb2f0b0c3
authorMike Kaganski <mike.kaganski@collabora.com>
Mon, 9 May 2022 07:27:03 +0000 (9 10:27 +0300)
committerMike Kaganski <mike.kaganski@collabora.com>
Mon, 9 May 2022 09:57:06 +0000 (9 11:57 +0200)
tree102ac41e6352203b23e44309567383a07ef1ae6c
parentc3f4c43694f0f9aec35193ccf40f0e7c8476fdc3
Fix --disable-pch build: explicitly delete move constructor

Without this, the implicitly created constructor is exported by MSVC
for the DLLPUBLIC class, and requires that VirtualDevice is defined,
resulting in this error in PCH-disabled builds:

  [build CXX] vcl/source/animate/Animation.cxx
  C:\lo\src\core\include\rtl/ref.hxx(129): error C2027: use of undefined type 'VirtualDevice'
  C:\lo\src\core\vcl\inc\impanmvw.hxx(29): note: see declaration of 'VirtualDevice'
  C:\lo\src\core\include\rtl/ref.hxx(127): note: while compiling class template member function 'rtl::Reference<reference_type>::~Reference(void)'
  with
  [
  reference_type=VirtualDevice
  ]
  C:\lo\src\core\include\vcl/vclptr.hxx(216): note: see reference to function template instantiation 'rtl::Reference<reference_type>::~Reference(void)' being comp
  iled
  with
  [
  reference_type=VirtualDevice
  ]
  C:\lo\src\core\include\vcl/vclptr.hxx(64): note: see reference to class template instantiation 'rtl::Reference<reference_type>' being compiled
  with
  [
  reference_type=VirtualDevice
  ]
  C:\lo\src\core\include\vcl/outdev.hxx(202): note: see reference to class template instantiation 'VclPtr<VirtualDevice>' being compiled
  make[1]: *** [C:/lo/src/core/solenv/gbuild/LinkTarget.mk:337: C:/lo/src/build/workdir/CxxObject/vcl/source/animate/Animation.o] Error 2

Change-Id: I78723ce7d00667595aff39bcab22169ff347098f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134036
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
vcl/inc/impanmvw.hxx