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

why pointers

Change-Id: I6b1b790bfcc94823f703679689bbd76312ee3e5b
üst ee037dea
...@@ -68,7 +68,7 @@ void DemoMtfWin::Paint( const Rectangle& rRect ) ...@@ -68,7 +68,7 @@ void DemoMtfWin::Paint( const Rectangle& rRect )
class DemoMtfApp : public Application class DemoMtfApp : public Application
{ {
DemoMtfWin *mpWin; DemoMtfWin *mpWin;
OUString *mpFileName; OUString maFileName;
void showHelp() void showHelp()
{ {
...@@ -81,7 +81,6 @@ public: ...@@ -81,7 +81,6 @@ public:
DemoMtfApp() DemoMtfApp()
: mpWin(NULL) : mpWin(NULL)
, mpFileName(NULL)
{ {
} }
...@@ -89,7 +88,7 @@ public: ...@@ -89,7 +88,7 @@ public:
{ {
try try
{ {
mpWin = new DemoMtfWin(*mpFileName); mpWin = new DemoMtfWin(maFileName);
mpWin->SetText(OUString("Display metafile")); mpWin->SetText(OUString("Display metafile"));
mpWin->Show(); mpWin->Show();
...@@ -126,7 +125,7 @@ protected: ...@@ -126,7 +125,7 @@ protected:
if (aArg == "--help" || aArg == "-h") if (aArg == "--help" || aArg == "-h")
showHelp(); showHelp();
else else
mpFileName = new OUString(aArg); maFileName = aArg;
} }
uno::Reference<uno::XComponentContext> xComponentContext uno::Reference<uno::XComponentContext> xComponentContext
......
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