diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-02-18 19:17:46 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-02-18 19:57:31 +0100 |
commit | 3db6d2cb99f9559ba29759990675e469613a8bb0 (patch) | |
tree | c57d319129e59438d9c63ee8e7e31c53431b8ff2 /include | |
parent | 7fd180c9d0014ac275422501e70e5122026eb364 (diff) |
GCC 4.9, LTO: libvcl uses GZCodec but it is not linked with the implementation
This is not valid C++ and GCC now resolves the virtual calls and inlines
destructor that leads to undefined symbols.
Change-Id: I841d25bc6f994f0e73665b174994f9471597131e
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/zcodec.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx index 14e2d5ba3cd2..e5d9592ad5bb 100644 --- a/include/tools/zcodec.hxx +++ b/include/tools/zcodec.hxx @@ -102,7 +102,10 @@ class GZCodec : public ZCodec public: GZCodec(){}; ~GZCodec(){}; - virtual void BeginCompression( sal_uIntPtr nCompressMethod = ZCODEC_DEFAULT ); + virtual void BeginCompression( sal_uIntPtr nCompressMethod = ZCODEC_DEFAULT ) + { + ZCodec::BeginCompression( nCompressMethod | ZCODEC_GZ_LIB ); + }; }; #endif |