[Libreoffice-commits] .: sc/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Apr 17 00:16:11 PDT 2011


 sc/source/core/data/documen2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d5c7234159510117ae3500efe9f60b98b00c5cdd
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Apr 17 09:15:30 2011 +0200

    Remove useless tests

diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 1947a7a..877e048 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -1085,9 +1085,9 @@ sal_uLong ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos,
         SfxObjectShell* pSrcShell = pSrcDoc ? pSrcDoc->GetDocumentShell() : NULL;
         if ( pSrcShell )
         {
-            StarBASIC* pStarBASIC = pSrcShell ? pSrcShell->GetBasic() : NULL;
+            StarBASIC* pStarBASIC = pSrcShell->GetBasic();
             String aLibName( RTL_CONSTASCII_USTRINGPARAM( "Standard" ) );
-            if ( pSrcShell && pSrcShell->GetBasicManager()->GetName().Len() > 0 )
+            if ( pSrcShell->GetBasicManager()->GetName().Len() > 0 )
             {
                 aLibName = pSrcShell->GetBasicManager()->GetName();
                 pStarBASIC = pSrcShell->GetBasicManager()->GetLib( aLibName );


More information about the Libreoffice-commits mailing list