office-gobmx/cli_ure
Stephan Bergmann a2166dfd41 Avoid MSVC error C2039
At least with VS 2022 Preview 17.6.0 Preview 3.0 and (if that makes a difference
here) --with-latest-c++, the build started to fail now for me with

> cli_ure/source/climaker/climaker_app.cxx(603): error C2039: '{dtor}': is not a member of 'System::IDisposable'

Originally, in 4c937bbdbb "#107130# new",
TypeEmitter in cli_ure/source/climaker/climaker_share.h had been defined as

> __gc class TypeEmitter : public ::System::IDisposable

with an overriding Dispose member function (and no user-declared dtor), and the
code in cli_ure/source/climaker/climaker_app.cxx had called

>         type_emitter->Dispose();

when done.  Then, in 6fa1a74ec4 "convert climaker
to new syntax", the definition of TypeEmitter had been changed to

> ref class TypeEmitter : public ::System::IDisposable

with a dtor instead of the overriding Dispose member function, and the code in
cli_ure/source/climaker/climaker_app.cxx had been changed to call

>         type_emitter->~TypeEmitter();

instead.

I have no deep understanding of the Managed C++/CLI stuff at play here, but it
looks reasonable to avoid all this by not deriving from IDisposable (and relying
on GC to clean up all instances) and introducing some explicit finish()
protocol.

Change-Id: I8ebfba9d9f9c32b65a50104d200306e06dc69f73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150387
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-04-17 15:07:57 +02:00
..
qa Drop obsolete preprocessor directives from UNOIDL files 2022-06-13 16:27:45 +02:00
source Avoid MSVC error C2039 2023-04-17 15:07:57 +02:00
unotypes
version
CliLibrary_cli_basetypes.mk tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
CliLibrary_cli_ure.mk tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
CliNativeLibrary_cli_cppuhelper.mk tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
CliUnoApi_cli_uretypes.mk tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
CustomTarget_cli_ure_assemblies.mk cli_ure: Win32 make quoting problem, use sed to work around 2014-06-09 17:05:52 +02:00
Executable_climaker.mk gbuild: Remove MSVC 2013 legacy code 2017-04-21 18:18:44 +02:00
Library_cli_cppuhelper_native.mk When building with clang-cl on Windows, build CLR code with MSVC 2017-02-21 10:18:58 +00:00
Library_cli_uno.mk When building with clang-cl on Windows, build CLR code with MSVC 2017-02-21 10:18:58 +00:00
Makefile gbuildize cli_ure 2012-09-22 08:15:23 +02:00
Module_cli_ure.mk allow native compile for windows aarch64 2023-04-11 12:06:25 +02:00
Package_cli_basetypes_copy.mk gbuild: set Package default target to INSTDIR 2013-10-28 20:17:26 +01:00
README.md Updated README.md files 2021-04-19 11:13:41 +02:00
readme.txt

Common Language Infrastructure (CLI) UNO Runtime Environment

Support assemblies and tools for the MS .NET UNO binding.

See also

[git:cli_ure/readme.txt]