Kaydet (Commit) d4b7bd99 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1257742 Uninitialized pointer field

Change-Id: Ie1431f24031265e6fe54c6f0523261da88d71b00
üst 7830fc98
...@@ -37,19 +37,17 @@ using namespace css; ...@@ -37,19 +37,17 @@ using namespace css;
class DemoMtfWin : public WorkWindow class DemoMtfWin : public WorkWindow
{ {
GDIMetaFile *mpMtf; GDIMetaFile maMtf;
public: public:
DemoMtfWin(OUString& aFileName) : DemoMtfWin(OUString& aFileName)
WorkWindow(NULL, WB_APP | WB_STDWORK) : WorkWindow(NULL, WB_APP | WB_STDWORK)
{ {
SvFileStream aFileStream(aFileName, STREAM_READ); SvFileStream aFileStream(aFileName, STREAM_READ);
if (aFileStream.IsOpen()) if (aFileStream.IsOpen())
{ {
ReadWindowMetafile(aFileStream, *mpMtf); ReadWindowMetafile(aFileStream, maMtf);
} }
else else
{ {
...@@ -62,7 +60,7 @@ public: ...@@ -62,7 +60,7 @@ public:
void DemoMtfWin::Paint( const Rectangle& rRect ) void DemoMtfWin::Paint( const Rectangle& rRect )
{ {
mpMtf->Play(this, mpMtf->GetActionSize()); maMtf.Play(this, maMtf.GetActionSize());
WorkWindow::Paint( rRect ); WorkWindow::Paint( rRect );
} }
......
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