summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-12 14:44:51 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-12 14:44:51 +0000
commit6c92eab7aefd27dd05aaf61624d58197a1c3d7e6 (patch)
tree8310dc18736f8ffd6b81822729073490f172dc17 /forms
parent6dd32268e2e7972da8dd1144b5083b396b671053 (diff)
#i10000#: wrong cast
Diffstat (limited to 'forms')
-rw-r--r--forms/source/richtext/richtextengine.cxx6
-rw-r--r--forms/source/richtext/rtattributehandler.cxx10
2 files changed, 8 insertions, 8 deletions
diff --git a/forms/source/richtext/richtextengine.cxx b/forms/source/richtext/richtextengine.cxx
index 04c322f77474..06c7f4cbafbf 100644
--- a/forms/source/richtext/richtextengine.cxx
+++ b/forms/source/richtext/richtextengine.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: richtextengine.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-05-07 16:12:42 $
+ * last change: $Author: hr $ $Date: 2004-05-12 15:44:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -126,7 +126,7 @@ namespace frm
pReturn->SetStatusEventHdl( LINK( pReturn, RichTextEngine, EditEngineStatusChanged ) );
- pPool->SetDefaultMetric( static_cast< SfxMapUnit >( aDeviceMapMode.GetMapUnit() ) );
+ pPool->SetDefaultMetric( (SfxMapUnit)( aDeviceMapMode.GetMapUnit() ) );
// defaults
Font aFont = Application::GetSettings().GetStyleSettings().GetAppFont();
diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx
index b3045ebdbbaf..7481551fd926 100644
--- a/forms/source/richtext/rtattributehandler.cxx
+++ b/forms/source/richtext/rtattributehandler.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rtattributehandler.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2004-05-07 16:14:50 $
+ * last change: $Author: hr $ $Date: 2004-05-12 15:44:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -463,7 +463,7 @@ namespace frm
{
nHeight = OutputDevice::LogicToLogic(
Size( 0, nHeight ),
- MapMode( static_cast< MapUnit >( _rAttribs.GetPool()->GetMetric( getWhich() ) ) ),
+ MapMode( (MapUnit)( _rAttribs.GetPool()->GetMetric( getWhich() ) ) ),
MapMode( MAP_TWIP )
).Height();
}
@@ -491,8 +491,8 @@ namespace frm
{
nHeight = OutputDevice::LogicToLogic(
Size( 0, nHeight ),
- MapMode( static_cast< MapUnit >( SFX_MAPUNIT_TWIP ) ),
- MapMode( static_cast< MapUnit >( _rNewAttribs.GetPool()->GetMetric( getWhich() ) ) )
+ MapMode( (MapUnit)( SFX_MAPUNIT_TWIP ) ),
+ MapMode( (MapUnit)( _rNewAttribs.GetPool()->GetMetric( getWhich() ) ) )
).Height();
}