diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-11 10:35:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-11 13:28:35 +0200 |
commit | 1c0e591accda7669bec9ccfc23977ce3f7386930 (patch) | |
tree | 9d7ae6738b9bbbe3790d6803b5b927f3cdade9ab /editeng | |
parent | 56e0f1fcd43e0d4ab8c7a678cbbed1ea2c612868 (diff) |
SvxFieldData wants to be held by tools::SvRef
Change-Id: If4f098341ed4f0b47a755a4722f0eace56235502
Reviewed-on: https://gerrit.libreoffice.org/52713
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/CustomPropertyField.cxx | 2 | ||||
-rw-r--r-- | editeng/source/items/flditem.cxx | 30 | ||||
-rw-r--r-- | editeng/source/items/svdfield.cxx | 2 |
3 files changed, 17 insertions, 17 deletions
diff --git a/editeng/source/items/CustomPropertyField.cxx b/editeng/source/items/CustomPropertyField.cxx index 621272150fac..e8ef53ceebb2 100644 --- a/editeng/source/items/CustomPropertyField.cxx +++ b/editeng/source/items/CustomPropertyField.cxx @@ -29,7 +29,7 @@ CustomPropertyField::~CustomPropertyField() SV_IMPL_PERSIST1(CustomPropertyField); -SvxFieldData* CustomPropertyField::Clone() const +tools::SvRef<SvxFieldData> CustomPropertyField::Clone() const { return new CustomPropertyField(msName, msCurrentPresentation); } diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index 21baa1593ee6..d90fbc522688 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -252,7 +252,7 @@ SvxFieldData::~SvxFieldData() } -SvxFieldData* SvxFieldData::Clone() const +tools::SvRef<SvxFieldData> SvxFieldData::Clone() const { return new SvxFieldData; } @@ -338,7 +338,7 @@ SvxDateField::SvxDateField( const Date& rDate, SvxDateType eT, SvxDateFormat eF } -SvxFieldData* SvxDateField::Clone() const +tools::SvRef<SvxFieldData> SvxDateField::Clone() const { return new SvxDateField( *this ); } @@ -449,7 +449,7 @@ SvxURLField::SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLF } -SvxFieldData* SvxURLField::Clone() const +tools::SvRef<SvxFieldData> SvxURLField::Clone() const { return new SvxURLField( *this ); } @@ -485,7 +485,7 @@ SV_IMPL_PERSIST1( SvxPageTitleField ); SvxPageTitleField::SvxPageTitleField() {} -SvxFieldData* SvxPageTitleField::Clone() const +tools::SvRef<SvxFieldData> SvxPageTitleField::Clone() const { return new SvxPageTitleField(); } @@ -510,7 +510,7 @@ SV_IMPL_PERSIST1( SvxPageField ); SvxPageField::SvxPageField() {} -SvxFieldData* SvxPageField::Clone() const +tools::SvRef<SvxFieldData> SvxPageField::Clone() const { return new SvxPageField; // empty } @@ -530,7 +530,7 @@ SV_IMPL_PERSIST1( SvxPagesField ); SvxPagesField::SvxPagesField() {} -SvxFieldData* SvxPagesField::Clone() const +tools::SvRef<SvxFieldData> SvxPagesField::Clone() const { return new SvxPagesField; // empty } @@ -544,7 +544,7 @@ SV_IMPL_PERSIST1( SvxTimeField ); SvxTimeField::SvxTimeField() {} -SvxFieldData* SvxTimeField::Clone() const +tools::SvRef<SvxFieldData> SvxTimeField::Clone() const { return new SvxTimeField; // empty } @@ -563,7 +563,7 @@ SV_IMPL_PERSIST1( SvxFileField ); SvxFileField::SvxFileField() {} -SvxFieldData* SvxFileField::Clone() const +tools::SvRef<SvxFieldData> SvxFileField::Clone() const { return new SvxFileField; // empty } @@ -585,7 +585,7 @@ void SvxTableField::SetTab(int nTab) } -SvxFieldData* SvxTableField::Clone() const +tools::SvRef<SvxFieldData> SvxTableField::Clone() const { return new SvxTableField(mnTab); } @@ -620,7 +620,7 @@ SvxExtTimeField::SvxExtTimeField( const tools::Time& rTime, SvxTimeType eT, SvxT } -SvxFieldData* SvxExtTimeField::Clone() const +tools::SvRef<SvxFieldData> SvxExtTimeField::Clone() const { return new SvxExtTimeField( *this ); } @@ -736,7 +736,7 @@ SvxExtFileField::SvxExtFileField( const OUString& rStr, SvxFileType eT, SvxFileF } -SvxFieldData* SvxExtFileField::Clone() const +tools::SvRef<SvxFieldData> SvxExtFileField::Clone() const { return new SvxExtFileField( *this ); } @@ -849,7 +849,7 @@ SvxAuthorField::SvxAuthorField( const OUString& rFirstName, } -SvxFieldData* SvxAuthorField::Clone() const +tools::SvRef<SvxFieldData> SvxAuthorField::Clone() const { return new SvxAuthorField( *this ); } @@ -898,7 +898,7 @@ SV_IMPL_PERSIST1( SvxHeaderField ); SvxHeaderField::SvxHeaderField() {} -SvxFieldData* SvxHeaderField::Clone() const +tools::SvRef<SvxFieldData> SvxHeaderField::Clone() const { return new SvxHeaderField; // empty } @@ -912,7 +912,7 @@ SV_IMPL_PERSIST1( SvxFooterField ); SvxFooterField::SvxFooterField() {} -SvxFieldData* SvxFooterField::Clone() const +tools::SvRef<SvxFieldData> SvxFooterField::Clone() const { return new SvxFooterField; // empty } @@ -924,7 +924,7 @@ bool SvxFooterField::operator==( const SvxFieldData& rCmp ) const SV_IMPL_PERSIST1( SvxDateTimeField ); -SvxFieldData* SvxDateTimeField::Clone() const +tools::SvRef<SvxFieldData> SvxDateTimeField::Clone() const { return new SvxDateTimeField; // empty } diff --git a/editeng/source/items/svdfield.cxx b/editeng/source/items/svdfield.cxx index 9ff72de11fdd..e448126b5d39 100644 --- a/editeng/source/items/svdfield.cxx +++ b/editeng/source/items/svdfield.cxx @@ -26,7 +26,7 @@ SdrMeasureField::~SdrMeasureField() { } -SvxFieldData* SdrMeasureField::Clone() const +tools::SvRef<SvxFieldData> SdrMeasureField::Clone() const { return new SdrMeasureField(*this); } |