summaryrefslogtreecommitdiff
path: root/include/tools/zcodec.hxx
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-02-18 19:17:46 +0100
committerJan Holesovsky <kendy@collabora.com>2014-02-18 19:57:31 +0100
commit3db6d2cb99f9559ba29759990675e469613a8bb0 (patch)
treec57d319129e59438d9c63ee8e7e31c53431b8ff2 /include/tools/zcodec.hxx
parent7fd180c9d0014ac275422501e70e5122026eb364 (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/tools/zcodec.hxx')
-rw-r--r--include/tools/zcodec.hxx5
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