From b89fd5b3f8f692cba007f377d7334e846a38705d Mon Sep 17 00:00:00 2001 From: Herbert Dürr Date: Tue, 28 Jan 2014 14:39:14 +0000 Subject: #i124131# use smart pointer's bool operator instead of comparing its content against NULL this makes the code more typesafe and avoids the -Wnull-conversion warnings seen with boost>=1.55 smart pointers in C+11 enabled build environments --- xmloff/source/text/txtimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff') diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 620376ef6896..fdd6324bcf32 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -2061,7 +2061,7 @@ void XMLTextImportHelper::SetOutlineStyles( sal_Bool bSetEmptyLevels ) static ::rtl::OUString s_HeadingStyleName( RTL_CONSTASCII_USTRINGPARAM("HeadingStyleName")); - if ((m_pImpl->m_pOutlineStylesCandidates != NULL || bSetEmptyLevels) && + if (( bool(m_pImpl->m_pOutlineStylesCandidates) || bSetEmptyLevels) && m_pImpl->m_xChapterNumbering.is() && !IsInsertMode()) { -- cgit