From 45b876555073990a490bf2c9e174bce803f12eea Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Tue, 7 Oct 2014 15:58:16 +0200 Subject: fix nullptr/boost compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: no match for ternary ‘operator?:’ in ‘((writerfilter::dmapper::DomainMapper_Impl*)this)->writerfilter::dmapper::DomainMapper_Impl::m_aFieldStack.std::stack<_Tp, _Sequence>::empty, std::deque, std::allocator > > >() ? nullptr : ((writerfilter::dmapper::DomainMapper_Impl*)this)->writerfilter::dmapper::DomainMapper_Impl::m_aFieldStack.std::stack<_Tp, _Sequence>::top, std::deque, std::allocator > > >()’ Change-Id: I76c7507390bcf80f6ca722c4eedfd65c9a46952f --- writerfilter/source/dmapper/DomainMapper_Impl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 1f98d0cc2553..b39686628527 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -3361,7 +3361,9 @@ void DomainMapper_Impl::CloseFieldCommand() dmapper_logger->element("closeFieldCommand"); #endif - FieldContextPtr pContext = m_aFieldStack.empty() ? nullptr : m_aFieldStack.top(); + FieldContextPtr pContext; + if(!m_aFieldStack.empty()) + pContext = m_aFieldStack.top(); OSL_ENSURE( pContext.get(), "no field context available"); if( pContext.get() ) { -- cgit