Kaydet (Commit) 84ccf805 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwFormatRefMark

Change-Id: I1036b8190532adb65d28d704637cf6f94d254235
üst df13da94
......@@ -38,10 +38,10 @@ class SwFormatRefMark
, public SwModify
{
friend class SwTextRefMark;
SwTextRefMark* pTextAttr;
SwTextRefMark* m_pTextAttr;
SwFormatRefMark& operator=(const SwFormatRefMark& rRefMark) = delete;
OUString aRefName;
OUString m_aRefName;
css::uno::WeakReference<css::text::XTextContent> m_wXReferenceMark;
......@@ -60,10 +60,10 @@ public:
void InvalidateRefMark();
const SwTextRefMark *GetTextRefMark() const { return pTextAttr; }
const SwTextRefMark *GetTextRefMark() const { return m_pTextAttr; }
OUString &GetRefName() { return aRefName; }
const OUString &GetRefName() const { return aRefName; }
OUString &GetRefName() { return m_aRefName; }
const OUString &GetRefName() const { return m_aRefName; }
css::uno::WeakReference<css::text::XTextContent> const& GetXRefMark() const
{ return m_wXReferenceMark; }
......
......@@ -31,23 +31,23 @@ SwFormatRefMark::~SwFormatRefMark( )
SwFormatRefMark::SwFormatRefMark( const OUString& rName )
: SfxPoolItem(RES_TXTATR_REFMARK)
, SwModify(nullptr)
, pTextAttr(nullptr)
, aRefName(rName)
, m_pTextAttr(nullptr)
, m_aRefName(rName)
{
}
SwFormatRefMark::SwFormatRefMark( const SwFormatRefMark& rAttr )
: SfxPoolItem(RES_TXTATR_REFMARK)
, SwModify(nullptr)
, pTextAttr(nullptr)
, aRefName(rAttr.aRefName)
, m_pTextAttr(nullptr)
, m_aRefName(rAttr.m_aRefName)
{
}
bool SwFormatRefMark::operator==( const SfxPoolItem& rAttr ) const
{
assert(SfxPoolItem::operator==(rAttr));
return aRefName == static_cast<const SwFormatRefMark&>(rAttr).aRefName;
return m_aRefName == static_cast<const SwFormatRefMark&>(rAttr).m_aRefName;
}
SfxPoolItem* SwFormatRefMark::Clone( SfxItemPool* ) const
......@@ -80,7 +80,7 @@ SwTextRefMark::SwTextRefMark( SwFormatRefMark& rAttr,
, m_pTextNode( nullptr )
, m_pEnd( nullptr )
{
rAttr.pTextAttr = this;
rAttr.m_pTextAttr = this;
if ( pEnd )
{
m_nEnd = *pEnd;
......
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