diff options
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper.cxx | 14 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableHandler.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableManager.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/GraphicImport.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/StyleSheetTable.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/dmapper/TablePropertiesHandler.cxx | 2 | ||||
-rw-r--r-- | writerfilter/source/ooxml/Handler.cxx | 4 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFactory.cxx | 6 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLFastContextHandler.cxx | 10 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLParserState.cxx | 8 | ||||
-rw-r--r-- | writerfilter/source/ooxml/OOXMLPropertySet.cxx | 16 |
12 files changed, 36 insertions, 36 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx index 475e7d9b5f77..0511b6677ba2 100644 --- a/writerfilter/source/dmapper/DomainMapper.cxx +++ b/writerfilter/source/dmapper/DomainMapper.cxx @@ -2508,7 +2508,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext ) case NS_ooxml::LN_ffdata: { writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) { FFDataHandler::Pointer_t pFFDataHandler(new FFDataHandler()); @@ -2522,14 +2522,14 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext ) { m_pImpl->m_pSdtHelper->setInsideDropDownControl(true); writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); } break; case NS_ooxml::LN_CT_SdtDropDownList_listItem: { writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); } break; @@ -2590,7 +2590,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext ) // process subitems writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); if (nSprmId == NS_ooxml::LN_CT_SdtPr_alias) @@ -2879,21 +2879,21 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, const PropertyMapPtr& rContext ) case NS_ooxml::LN_CT_DocPartPr_name: { writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); } break; case NS_ooxml::LN_CT_DocPartPr_category: { writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); } break; case NS_ooxml::LN_CT_DocPartCategory_gallery: { writerfilter::Reference<Properties>::Pointer_t pProperties = rSprm.getProps(); - if (pProperties.get() != nullptr) + if (pProperties) pProperties->resolve(*this); } break; diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx index dd5a14b732eb..a42478a2b0df 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx @@ -87,7 +87,7 @@ void DomainMapperTableHandler::startTable(const TablePropertyMapPtr& pProps) #ifdef DBG_UTIL TagLogger::getInstance().startElement("tablehandler.table"); - if (pProps.get() != nullptr) + if (pProps) pProps->dumpXml(); #endif } diff --git a/writerfilter/source/dmapper/DomainMapperTableManager.cxx b/writerfilter/source/dmapper/DomainMapperTableManager.cxx index 915b317d40d5..d0f46d312128 100644 --- a/writerfilter/source/dmapper/DomainMapperTableManager.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableManager.cxx @@ -127,7 +127,7 @@ bool DomainMapperTableManager::sprm(Sprm & rSprm) bRet = true; sal_uInt32 nSprmId = rSprm.getId(); Value::Pointer_t pValue = rSprm.getValue(); - sal_Int32 nIntValue = ((pValue.get() != nullptr) ? pValue->getInt() : 0); + sal_Int32 nIntValue = (pValue ? pValue->getInt() : 0); switch ( nSprmId ) { case NS_ooxml::LN_CT_TblPrBase_tblW: @@ -514,7 +514,7 @@ void DomainMapperTableManager::endLevel( ) #ifdef DBG_UTIL TagLogger::getInstance().startElement("dmappertablemanager.endLevel"); PropertyMapPtr pProps = getTableProps().get(); - if (pProps.get() != nullptr) + if (pProps) getTableProps()->dumpXml(); TagLogger::getInstance().endElement(); diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index fb58e1b9567b..18fb4fa3d982 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -5957,7 +5957,7 @@ void DomainMapper_Impl::PopFieldContext() else { FormControlHelper::Pointer_t pFormControlHelper(pContext->getFormControlHelper()); - if (pFormControlHelper.get() != nullptr) + if (pFormControlHelper) { uno::Reference< text::XFormField > xFormField( pContext->GetFormField() ); assert(xCrsr.is()); diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index 73333b23e790..5155e2f61211 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -1386,7 +1386,7 @@ uno::Reference<text::XTextContent> GraphicImport::createGraphicObject(uno::Refer //there seems to be no way to detect the original size via _real_ API uno::Reference< beans::XPropertySet > xGraphicProperties(rxGraphic, uno::UNO_QUERY_THROW); - if (m_pImpl->mpWrapPolygon.get() != nullptr) + if (m_pImpl->mpWrapPolygon) { uno::Any aContourPolyPolygon; awt::Size aGraphicSize; diff --git a/writerfilter/source/dmapper/StyleSheetTable.cxx b/writerfilter/source/dmapper/StyleSheetTable.cxx index d03be9cba324..80a0df186407 100644 --- a/writerfilter/source/dmapper/StyleSheetTable.cxx +++ b/writerfilter/source/dmapper/StyleSheetTable.cxx @@ -1018,7 +1018,7 @@ void StyleSheetTable::ApplyStyleSheets( const FontTablePtr& rFontTable ) //TODO: Handle cases where a paragraph <> character style relation is needed StyleSheetEntryPtr pParent = FindStyleSheetByISTD( pEntry->sBaseStyleIdentifier ); // Writer core doesn't support numbering styles having a parent style, it seems - if (pParent.get() != nullptr && !bListStyle) + if (pParent && !bListStyle) { const OUString sParentStyleName = ConvertStyleName( pParent->sStyleName ); if ( !sParentStyleName.isEmpty() && !xStyles->hasByName( sParentStyleName ) ) diff --git a/writerfilter/source/dmapper/TablePropertiesHandler.cxx b/writerfilter/source/dmapper/TablePropertiesHandler.cxx index abce3a1e6b14..a0185eaa735a 100644 --- a/writerfilter/source/dmapper/TablePropertiesHandler.cxx +++ b/writerfilter/source/dmapper/TablePropertiesHandler.cxx @@ -54,7 +54,7 @@ namespace writerfilter::dmapper { bool bRet = true; sal_uInt32 nSprmId = rSprm.getId(); Value::Pointer_t pValue = rSprm.getValue(); - sal_Int32 nIntValue = ((pValue.get() != nullptr) ? pValue->getInt() : 0); + sal_Int32 nIntValue = (pValue ? pValue->getInt() : 0); switch( nSprmId ) { case NS_ooxml::LN_CT_TrPrBase_jc: diff --git a/writerfilter/source/ooxml/Handler.cxx b/writerfilter/source/ooxml/Handler.cxx index c582b71aba82..92c74e78e63a 100644 --- a/writerfilter/source/ooxml/Handler.cxx +++ b/writerfilter/source/ooxml/Handler.cxx @@ -299,7 +299,7 @@ void OOXMLPictureHandler::attribute(Id name, Value & val) { writerfilter::Reference<Properties>::Pointer_t pProps (val.getProperties()); - if (pProps.get() != nullptr) + if (pProps) pProps->resolve(*this); } } @@ -309,7 +309,7 @@ void OOXMLPictureHandler::sprm(Sprm & rSprm) writerfilter::Reference<Properties>::Pointer_t pProps (rSprm.getProps()); - if (pProps.get() != nullptr) + if (pProps) pProps->resolve(*this); } diff --git a/writerfilter/source/ooxml/OOXMLFactory.cxx b/writerfilter/source/ooxml/OOXMLFactory.cxx index 6bc7a10e8df1..9c2c51c36a2c 100644 --- a/writerfilter/source/ooxml/OOXMLFactory.cxx +++ b/writerfilter/source/ooxml/OOXMLFactory.cxx @@ -167,7 +167,7 @@ void OOXMLFactory::characters(OOXMLFastContextHandler * pHandler, Id nDefine = pHandler->getDefine(); OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); - if (pFactory.get() != nullptr) + if (pFactory) { pFactory->charactersAction(pHandler, rString); } @@ -178,7 +178,7 @@ void OOXMLFactory::startAction(OOXMLFastContextHandler * pHandler) Id nDefine = pHandler->getDefine(); OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); - if (pFactory.get() != nullptr) + if (pFactory) { pFactory->startAction(pHandler); } @@ -189,7 +189,7 @@ void OOXMLFactory::endAction(OOXMLFastContextHandler * pHandler) Id nDefine = pHandler->getDefine(); OOXMLFactory_ns::Pointer_t pFactory = getFactoryForNamespace(nDefine); - if (pFactory.get() != nullptr) + if (pFactory) { pFactory->endAction(pHandler); } diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 6a31e6b69a97..42888678f98e 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -877,7 +877,7 @@ void OOXMLFastContextHandler::sendPropertyToParent() { OOXMLPropertySet::Pointer_t pProps(mpParent->getPropertySet()); - if (pProps.get() != nullptr) + if (pProps) { pProps->add(mId, getValue(), OOXMLProperty::SPRM); } @@ -890,11 +890,11 @@ void OOXMLFastContextHandler::sendPropertiesToParent() { OOXMLPropertySet::Pointer_t pParentProps(mpParent->getPropertySet()); - if (pParentProps.get() != nullptr) + if (pParentProps) { OOXMLPropertySet::Pointer_t pProps(getPropertySet()); - if (pProps.get() != nullptr) + if (pProps) { OOXMLValue::Pointer_t pValue (new OOXMLPropertySetValue(getPropertySet())); @@ -1123,7 +1123,7 @@ void OOXMLFastContextHandlerProperties::handleHyperlinkURL() { void OOXMLFastContextHandlerProperties::setPropertySet (const OOXMLPropertySet::Pointer_t& pPropertySet) { - if (pPropertySet.get() != nullptr) + if (pPropertySet) mpPropertySet = pPropertySet; } @@ -1289,7 +1289,7 @@ void OOXMLFastContextHandlerTable::addCurrentChild() { OOXMLValue::Pointer_t pValue(pHandler->getValue()); - if (pValue.get() != nullptr) + if (pValue) { OOXMLTable::ValuePointer_t pTmpVal(pValue->clone()); mTable.add(pTmpVal); diff --git a/writerfilter/source/ooxml/OOXMLParserState.cxx b/writerfilter/source/ooxml/OOXMLParserState.cxx index 576e97c8ce7a..bab418a2f2ff 100644 --- a/writerfilter/source/ooxml/OOXMLParserState.cxx +++ b/writerfilter/source/ooxml/OOXMLParserState.cxx @@ -110,7 +110,7 @@ const OUString & OOXMLParserState::getTarget() const void OOXMLParserState::resolveCharacterProperties(Stream & rStream) { - if (mpCharacterProps.get() != nullptr) + if (mpCharacterProps) { rStream.props(mpCharacterProps.get()); mpCharacterProps = new OOXMLPropertySet; @@ -157,7 +157,7 @@ void OOXMLParserState::resolveCellProperties(Stream & rStream) { OOXMLPropertySet::Pointer_t & rCellProps = mCellProps.top(); - if (rCellProps.get() != nullptr) + if (rCellProps) { rStream.props(rCellProps.get()); rCellProps = new OOXMLPropertySet; @@ -171,7 +171,7 @@ void OOXMLParserState::resolveRowProperties(Stream & rStream) { OOXMLPropertySet::Pointer_t & rRowProps = mRowProps.top(); - if (rRowProps.get() != nullptr) + if (rRowProps) { rStream.props(rRowProps.get()); rRowProps = new OOXMLPropertySet; @@ -185,7 +185,7 @@ void OOXMLParserState::resolveTableProperties(Stream & rStream) { OOXMLPropertySet::Pointer_t & rTableProps = mTableProps.top(); - if (rTableProps.get() != nullptr) + if (rTableProps) { rStream.props(rTableProps.get()); // Don't clean the table props to send them again for each row diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx index b8071011422b..e7e1c8d581c9 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx @@ -49,7 +49,7 @@ Value::Pointer_t OOXMLProperty::getValue() { Value::Pointer_t pResult; - if (mpValue.get() != nullptr) + if (mpValue) pResult = Value::Pointer_t(mpValue->clone()); else pResult = Value::Pointer_t(new OOXMLValue()); @@ -61,7 +61,7 @@ writerfilter::Reference<Properties>::Pointer_t OOXMLProperty::getProps() { writerfilter::Reference<Properties>::Pointer_t pResult; - if (mpValue.get() != nullptr) + if (mpValue) pResult = mpValue->getProperties(); return pResult; @@ -94,7 +94,7 @@ string OOXMLProperty::toString() const sResult += getName(); sResult += ", "; - if (mpValue.get() != nullptr) + if (mpValue) sResult += mpValue->toString(); else sResult +="(null)"; @@ -341,7 +341,7 @@ void OOXMLPropertySet::resolve(Properties & rHandler) { OOXMLProperty::Pointer_t pProp = mProperties[nIt]; - if (pProp.get() != nullptr) + if (pProp) pProp->resolve(rHandler); } } @@ -370,7 +370,7 @@ OOXMLPropertySet::end() const void OOXMLPropertySet::add(const OOXMLProperty::Pointer_t& pProperty) { - if (pProperty.get() != nullptr && pProperty->getId() != 0x0) + if (pProperty && pProperty->getId() != 0x0) { mProperties.push_back(pProperty); } @@ -416,7 +416,7 @@ string OOXMLPropertySet::toString() if (aIt != aItBegin) sResult += ", "; - if ((*aIt).get() != nullptr) + if (*aIt) sResult += (*aIt)->toString(); else sResult += "0x0"; @@ -772,7 +772,7 @@ void OOXMLTable::resolve(Table & rTable) writerfilter::Reference<Properties>::Pointer_t pProperties (rPropSet->getProperties()); - if (pProperties.get() != nullptr) + if (pProperties) pTable->entry(nPos, pProperties); ++nPos; @@ -781,7 +781,7 @@ void OOXMLTable::resolve(Table & rTable) void OOXMLTable::add(const ValuePointer_t& pPropertySet) { - if (pPropertySet.get() != nullptr) + if (pPropertySet) mPropertySets.push_back(pPropertySet); } |