summaryrefslogtreecommitdiff
path: root/linguistic/source/spelldsp.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source/spelldsp.hxx')
-rw-r--r--linguistic/source/spelldsp.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx
index f9a30634d9ef..492321527595 100644
--- a/linguistic/source/spelldsp.hxx
+++ b/linguistic/source/spelldsp.hxx
@@ -121,16 +121,18 @@ inline linguistic::SpellCache & SpellCheckerDispatcher::GetCache() const
inline css::uno::Reference< css::linguistic2::XLinguProperties >
SpellCheckerDispatcher::GetPropSet()
{
- return m_xPropSet.is() ?
- m_xPropSet : m_xPropSet = linguistic::GetLinguProperties();
+ if (!m_xPropSet.is())
+ m_xPropSet = linguistic::GetLinguProperties();
+ return m_xPropSet;
}
inline css::uno::Reference< css::linguistic2::XSearchableDictionaryList >
SpellCheckerDispatcher::GetDicList()
{
- return m_xDicList.is() ?
- m_xDicList : m_xDicList = linguistic::GetDictionaryList();
+ if (!m_xDicList.is())
+ m_xDicList = linguistic::GetDictionaryList();
+ return m_xDicList;
}