From f9611b4a3bbb1e963b3a3d23b1905641c6d19651 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Feb 2011 12:03:32 +0000 Subject: .is() rather than != NULL --- editeng/source/misc/svxacorr.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index f52d698b410d..0dfb8943360f 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -448,7 +448,9 @@ BOOL SvxAutoCorrect::FnCptlSttWrd( SvxAutoCorrDoc& rDoc, const String& rTxt, SvxGetSpellChecker(); Sequence< ::com::sun::star::beans::PropertyValue > aEmptySeq; // Check that word isn't correctly spelled before correcting - if(xSpeller->spell( sWord, eLang, aEmptySeq ) != NULL) + ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellAlternatives > xSpellAlt + = xSpeller->spell(sWord, eLang, aEmptySeq); + if(xSpellAlt.is()) { sal_Unicode cSave = rTxt.GetChar( nSttPos ); String sChar( cSave ); -- cgit