Kaydet (Commit) 7f4405fa authored tarafından Miklos Vajna's avatar Miklos Vajna

Use std::make_shared<>

Change-Id: Ifc728dc0b42d713a5eaa2fc22d3e71c6aa4f196d
Reviewed-on: https://gerrit.libreoffice.org/15146Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst ce1365ec
......@@ -27,131 +27,131 @@ RTFValue::RTFValue(int nValue, const OUString& sValue,
const RTFShape& aShape)
: m_nValue(nValue),
m_sValue(sValue),
m_pAttributes(std::make_shared<RTFSprms>(rAttributes)),
m_pSprms(std::make_shared<RTFSprms>(rSprms)),
m_xShape(xShape),
m_xStream(xStream),
m_xObject(xObject),
m_bForceString(bForceString)
m_bForceString(bForceString),
m_pShape(std::make_shared<RTFShape>(aShape))
{
m_pAttributes.reset(new RTFSprms(rAttributes));
m_pSprms.reset(new RTFSprms(rSprms));
m_pShape.reset(new RTFShape(aShape));
}
RTFValue::RTFValue()
: m_nValue(0),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(int nValue)
: m_nValue(nValue),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(false)
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(const OUString& sValue, bool bForce)
: m_nValue(),
m_sValue(sValue),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(bForce)
m_bForceString(bForce),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(RTFSprms rAttributes)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>(rAttributes)),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms(rAttributes));
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(RTFSprms rAttributes, RTFSprms rSprms)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>(rAttributes)),
m_pSprms(std::make_shared<RTFSprms>(rSprms)),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms(rAttributes));
m_pSprms.reset(new RTFSprms(rSprms));
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(uno::Reference<drawing::XShape> const& xShape)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(xShape),
m_xStream(),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(uno::Reference<io::XInputStream> const& xStream)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(xStream),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(uno::Reference<embed::XEmbeddedObject> const& xObject)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(xObject),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>())
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape());
}
RTFValue::RTFValue(const RTFShape& aShape)
: m_nValue(),
m_sValue(),
m_pAttributes(std::make_shared<RTFSprms>()),
m_pSprms(std::make_shared<RTFSprms>()),
m_xShape(),
m_xStream(),
m_xObject(),
m_bForceString(false)
m_bForceString(false),
m_pShape(std::make_shared<RTFShape>(aShape))
{
m_pAttributes.reset(new RTFSprms());
m_pSprms.reset(new RTFSprms());
m_pShape.reset(new RTFShape(aShape));
}
RTFValue::~RTFValue()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment