[PATCH 1/2] Fix commented-out null-pointer check.

Phil Bordelon phil at thenexusproject.org
Thu Sep 30 08:40:05 PDT 2010


In SmEditAccessible::addEventListener(), a previous commenting-out
of a line also removed a null-pointer check.  This axes the
commented out code but restores the check.

Signed-off-by: Phil Bordelon <phil at thenexusproject.org>
---
 starmath/source/accessibility.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 36d943a..74c5f0f 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -1952,7 +1952,7 @@ Locale SAL_CALL SmEditAccessible::getLocale(  )
 void SAL_CALL SmEditAccessible::addEventListener( const uno::Reference< XAccessibleEventListener >& xListener )
     throw (RuntimeException)
 {
-    //vos::OGuard aGuard(Application::GetSolarMutex());   if (pTextHelper)   // not disposing (about to destroy view shell)
+    if (pTextHelper)   // not disposing (about to destroy view shell)
         pTextHelper->AddEventListener( xListener );
 }
 
-- 
1.7.0.4


--------------050905050206040109040706
Content-Type: text/x-patch;
 name="0002-Remove-dead-less-than-zero-conditional-checks.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-Remove-dead-less-than-zero-conditional-checks.patch"



More information about the LibreOffice mailing list