[Libreoffice-commits] .: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 9 04:37:32 PST 2013


 svx/source/dialog/compressgraphicdialog.cxx |    6 +++---
 svx/source/svdraw/svdattr.cxx               |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit e070b852074dd6f90128832ac0da3ef96e868d77
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Wed Jan 9 13:36:39 2013 +0100

    lame_OUString_valueOf_sal_Int32_casts += 6;

diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index 6a8b466..74a5435 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -123,7 +123,7 @@ void CompressGraphicsDialog::Update()
     aViewSizeString += String( " x " ) ;
     aViewSizeString += GetUnitString( m_aViewSize100mm.Height(), eFieldUnit, cSeparator );
     aViewSizeString += ( " at " ) ;
-    aViewSizeString += OUString::valueOf(aValX);
+    aViewSizeString += OUString::valueOf( static_cast< sal_Int32 >(aValX));
     aViewSizeString += ( " DPI" ) ;
     m_pFixedText3->SetText(aViewSizeString);
 
@@ -144,13 +144,13 @@ void CompressGraphicsDialog::Update()
 void CompressGraphicsDialog::UpdateNewWidthMF()
 {
     int nPixelX = (sal_Int32)( GetViewWidthInch() * m_dResolution );
-    m_pMFNewWidth->SetText( OUString::valueOf( nPixelX ) );
+    m_pMFNewWidth->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelX ) ));
 }
 
 void CompressGraphicsDialog::UpdateNewHeightMF()
 {
     int nPixelY = (sal_Int32)( GetViewHeightInch() * m_dResolution );
-    m_pMFNewHeight->SetText( OUString::valueOf( nPixelY ) );
+    m_pMFNewHeight->SetText( OUString::valueOf( static_cast< sal_Int32 >( nPixelY ) ));
 }
 
 void CompressGraphicsDialog::UpdateResolutionLB()
diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx
index 6146515..45042dd 100644
--- a/svx/source/svdraw/svdattr.cxx
+++ b/svx/source/svdraw/svdattr.cxx
@@ -817,7 +817,7 @@ SfxItemPresentation SdrPercentItem::GetPresentation(
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/,
     SfxMapUnit /*ePresMetric*/, XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf(GetValue());
+    rText = OUString::valueOf( static_cast< sal_Int32 >(GetValue()));
     rText += sal_Unicode('%');
 
     if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)
@@ -1301,7 +1301,7 @@ SfxItemPresentation SdrTextAniDelayItem::GetPresentation(
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
     XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf(GetValue());
+    rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
     rText += sal_Unicode('m');
     rText += sal_Unicode('s');
 
@@ -2058,7 +2058,7 @@ SfxItemPresentation SdrSignedPercentItem::GetPresentation(
     SfxItemPresentation ePres, SfxMapUnit /*eCoreMetric*/, SfxMapUnit /*ePresMetric*/,
     XubString& rText, const IntlWrapper *) const
 {
-    rText = OUString::valueOf(GetValue());
+    rText = OUString::valueOf( static_cast< sal_Int32 >( GetValue()));
     rText += sal_Unicode('%');
 
     if(ePres == SFX_ITEM_PRESENTATION_COMPLETE)


More information about the Libreoffice-commits mailing list