summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-11 19:36:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-11 19:51:23 +0100
commit63c48a7e0e3debec16dfc7cd04e7eca4c6fbe0ea (patch)
treebaf4e185ddc50b86c60c991b1c82b5344f5d7a97 /include
parent2a68ed19e8f35909e5dba691f9552099eae3162f (diff)
Fix SvxFontHeightItem::operator=
...and remove thus unused SetHeightValue Change-Id: I9c8c18614233df6086ff23533e7e7129848f42ef
Diffstat (limited to 'include')
-rw-r--r--include/editeng/fhgtitem.hxx12
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 )
{