diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-23 12:03:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-23 12:03:32 +0000 |
commit | f9611b4a3bbb1e963b3a3d23b1905641c6d19651 (patch) | |
tree | d259e5e02530269f37ea0d691203a37a23439db7 | |
parent | 51efaa592d4f54133c74e38cf294526bc78dffcd (diff) |
.is() rather than != NULL
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |