summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-07 11:27:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-07 12:24:43 +0000
commit78213dfeadf5980b8ab4677bfdabb5bf6694c523 (patch)
tree72c22d744b07cff05c24a1b9e7a081409f3c9397 /sw
parent710a7dd475df5a68641ef1d4966178e739474a3e (diff)
coverity#1158075 Dereference after null check
Change-Id: I0143ec3dd07d4a56f9ce71ab877593c0b23a05c3
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/autofmt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 4ca35f45d2d9..60f3d7aa9623 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -1980,7 +1980,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos )
case '/':
if ( aFlags.bAddNonBrkSpace )
{
- LanguageType eLang = (bGetLanguage && pAktTxtNd)
+ LanguageType eLang = bGetLanguage
? pAktTxtNd->GetLang( nSttPos )
: LANGUAGE_SYSTEM;
@@ -2037,7 +2037,7 @@ void SwAutoFormat::AutoCorrect( sal_Int32 nPos )
continue; // do not check further
}
- LanguageType eLang = (bGetLanguage && pAktTxtNd)
+ LanguageType eLang = bGetLanguage
? pAktTxtNd->GetLang( nSttPos )
: LANGUAGE_SYSTEM;