[Libreoffice-commits] .: sfx2/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Jul 25 15:00:55 PDT 2012
sfx2/source/doc/docfile.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit a201c00b9330f6e765d9fe10b5a6c120f49a6da8
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Wed Jul 25 17:50:09 2012 -0400
The impl class is never null. No point checking for it.
Change-Id: I992e335bf217f3df30356f260ef1eb0f94d40233
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index d6a0864..21f93ab 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)
More information about the Libreoffice-commits
mailing list