diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 19:36:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 19:51:23 +0100 |
commit | 63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea (patch) | |
tree | baf4e185ddc50b86c60c991b1c82b5344f5d7a97 /include | |
parent | Revert "Some SvxFontHeightItem clean-up" (diff) | |
download | core-63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea.tar.gz core-63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea.zip |
Fix SvxFontHeightItem::operator=
...and remove thus unused SetHeightValue
Change-Id: I9c8c18614233df6086ff23533e7e7129848f42ef
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/fhgtitem.hxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/editeng/fhgtitem.hxx b/include/editeng/fhgtitem.hxx index 3ff3e64bd532..2ea466fb5a77 100644 --- a/include/editeng/fhgtitem.hxx +++ b/include/editeng/fhgtitem.hxx @@ -66,8 +66,10 @@ public: inline SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize) { - SetHeightValue( rSize.GetHeight() ); - SetProp( rSize.GetProp(), ePropUnit ); + DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); + nHeight = rSize.nHeight; + nProp = rSize.nProp; + ePropUnit = rSize.ePropUnit; return *this; } @@ -79,12 +81,6 @@ public: sal_uInt32 GetHeight() const { return nHeight; } - void SetHeightValue( sal_uInt32 nNewHeight ) - { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - nHeight = nNewHeight; - } - void SetProp( const sal_uInt16 nNewProp, SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE ) { |