summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-11 21:01:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-11 21:01:47 +0000
commitd4fb53e4b4659e144488223730609f30788cc51e (patch)
tree3e326afe6ec3b90e8023dfd22c25b9127230bdcb /vcl
parentee037deada8ee2ac09f58f9fdc47d0ca904b3b7f (diff)
why pointers
Change-Id: I6b1b790bfcc94823f703679689bbd76312ee3e5b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/mtfdemo.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index 9e76737566ff..6e4d73d353b1 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -68,7 +68,7 @@ void DemoMtfWin::Paint( const Rectangle& rRect )
class DemoMtfApp : public Application
{
DemoMtfWin *mpWin;
- OUString *mpFileName;
+ OUString maFileName;
void showHelp()
{
@@ -81,7 +81,6 @@ public:
DemoMtfApp()
: mpWin(NULL)
- , mpFileName(NULL)
{
}
@@ -89,7 +88,7 @@ public:
{
try
{
- mpWin = new DemoMtfWin(*mpFileName);
+ mpWin = new DemoMtfWin(maFileName);
mpWin->SetText(OUString("Display metafile"));
mpWin->Show();
@@ -126,7 +125,7 @@ protected:
if (aArg == "--help" || aArg == "-h")
showHelp();
else
- mpFileName = new OUString(aArg);
+ maFileName = aArg;
}
uno::Reference<uno::XComponentContext> xComponentContext