Kaydet (Commit) 3db6d2cb authored tarafından Jan Hubicka's avatar Jan Hubicka Kaydeden (comit) Jan Holesovsky

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
üst 7fd180c9
......@@ -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
......
......@@ -413,9 +413,4 @@ sal_uIntPtr ZCodec::UpdateCRC ( sal_uIntPtr nLatestCRC, sal_uInt8* pSource, long
return rtl_crc32( nLatestCRC, pSource, nDatSize );
}
void GZCodec::BeginCompression( sal_uIntPtr nCompressMethod )
{
ZCodec::BeginCompression( nCompressMethod | ZCODEC_GZ_LIB );
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment