Kaydet (Commit) bd0ec1e6 authored tarafından Miklos Vajna's avatar Miklos Vajna

lokdocview: ensure private structure is allocated with operator new

It's undesirable to malloc a struct that has a TileBuffer member, while
TileBuffer doesn't have a default ctor.

Change-Id: I72dfacc0088f238ee101d84838bd7eea51ced82a
üst 065c8b48
...@@ -80,8 +80,8 @@ private: ...@@ -80,8 +80,8 @@ private:
class TileBuffer class TileBuffer
{ {
public: public:
TileBuffer(LibreOfficeKitDocument *document, TileBuffer(LibreOfficeKitDocument *document = 0,
int columns) int columns = 0)
: m_pLOKDocument(document) : m_pLOKDocument(document)
, m_nWidth(columns) , m_nWidth(columns)
{ {
......
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