summaryrefslogtreecommitdiff
path: root/i18npool/source/breakiterator
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-24 21:29:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-08-25 11:30:52 +0200
commitc854d2d32f75e4d47ace970897c336f24f00224d (patch)
tree3971ad0109ad23c5fe2c2f2de1392bd19aaecdd1 /i18npool/source/breakiterator
parentc6c8de5a94bb0d96e9cde3859462dfb3f70812ff (diff)
cid#1448216 silence Explicit null deferenced false positives
Change-Id: If64dd1c384086aa502f01c63a77cc9ca4fbab301 Reviewed-on: https://gerrit.libreoffice.org/78074 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'i18npool/source/breakiterator')
-rw-r--r--i18npool/source/breakiterator/breakiterator_cjk.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index 2049f3b47f73..baf302e6ef0c 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -145,6 +145,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak(
BreakIterator_zh::BreakIterator_zh()
{
m_xDict = std::make_unique<xdictionary>("zh");
+ assert(hangingCharacters.pData);
hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("zh", "CN"));
cBreakIterator = "com.sun.star.i18n.BreakIterator_zh";
}
@@ -155,6 +156,7 @@ BreakIterator_zh::BreakIterator_zh()
BreakIterator_zh_TW::BreakIterator_zh_TW()
{
m_xDict = std::make_unique<xdictionary>("zh");
+ assert(hangingCharacters.pData);
hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("zh", "TW"));
cBreakIterator = "com.sun.star.i18n.BreakIterator_zh_TW";
}
@@ -166,6 +168,7 @@ BreakIterator_ja::BreakIterator_ja()
{
m_xDict = std::make_unique<xdictionary>("ja");
m_xDict->setJapaneseWordBreak();
+ assert(hangingCharacters.pData);
hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("ja", "JP"));
cBreakIterator = "com.sun.star.i18n.BreakIterator_ja";
}
@@ -175,6 +178,7 @@ BreakIterator_ja::BreakIterator_ja()
// ----------------------------------------------------;
BreakIterator_ko::BreakIterator_ko()
{
+ assert(hangingCharacters.pData);
hangingCharacters = LocaleDataImpl::get()->getHangingCharacters(LOCALE("ko", "KR"));
cBreakIterator = "com.sun.star.i18n.BreakIterator_ko";
}