diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-25 17:50:09 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-07-25 18:05:26 -0400 |
commit | a201c00b9330f6e765d9fe10b5a6c120f49a6da8 (patch) | |
tree | b315fe0e3a7a7281e9ec306983847f308a85cacb /sfx2 | |
parent | 085e747b6ca4148b35f37daf622a5ee79710cd66 (diff) |
The impl class is never null. No point checking for it.
Change-Id: I992e335bf217f3df30356f260ef1eb0f94d40233
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index d6a0864c7e1a..21f93ab242af 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -2387,15 +2387,13 @@ sal_Bool SfxMedium::IsRemote() void SfxMedium::SetUpdatePickList(sal_Bool bVal) { - if(!pImp) - pImp = new SfxMedium_Impl( this ); pImp->bUpdatePickList = bVal; } //------------------------------------------------------------------ sal_Bool SfxMedium::IsUpdatePickList() const { - return pImp? pImp->bUpdatePickList: true; + return pImp->bUpdatePickList; } void SfxMedium::SetLongName(const OUString &rName) |