[Libreoffice-commits] .: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Jan 9 05:08:24 PST 2013
sw/source/ui/uno/unoatxt.cxx | 4 ++--
sw/source/ui/utlui/attrdesc.cxx | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 8948b137acc954778b6198b3e333945eb8c63d31
Author: Michael Meeks <michael.meeks at suse.com>
Date: Wed Jan 9 13:08:53 2013 +0000
lame_OUString_valueOf_sal_Int32_casts += 6;
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
index 527a6ce..8c102ec 100644
--- a/sw/source/ui/uno/unoatxt.cxx
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -194,7 +194,7 @@ uno::Reference< text::XAutoTextGroup > SwXAutoTextContainer::insertNewByName(
if(STRING_NOTFOUND == sGroup.Search(GLOS_DELIM))
{
sGroup += GLOS_DELIM;
- sGroup += OUString::valueOf(0);
+ sGroup += OUString::valueOf(sal_Int32(0));
}
pGlossaries->NewGroupDoc(sGroup, sGroup.GetToken(0, GLOS_DELIM));
@@ -494,7 +494,7 @@ void SwXAutoTextGroup::setName(const OUString& rName) throw( uno::RuntimeExcepti
if(STRING_NOTFOUND == sNewGroup.Search(GLOS_DELIM))
{
sNewGroup += GLOS_DELIM;
- sNewGroup += OUString::valueOf(0);
+ sNewGroup += OUString::valueOf(sal_Int32(0));
}
//the name must be saved, the group may be invalidated while in RenameGroupDoc()
diff --git a/sw/source/ui/utlui/attrdesc.cxx b/sw/source/ui/utlui/attrdesc.cxx
index ee63cd7..5b6a4c9 100644
--- a/sw/source/ui/utlui/attrdesc.cxx
+++ b/sw/source/ui/utlui/attrdesc.cxx
@@ -1095,7 +1095,7 @@ SfxItemPresentation SwRotationGrf::GetPresentation(
rText = SW_RESSTR( STR_ROTATION );
else if( rText.Len() )
rText.Erase();
- ( rText += OUString::valueOf( GetValue() )) += '\xB0';
+ ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '\xB0';
break;
default:
@@ -1118,7 +1118,7 @@ SfxItemPresentation SwLuminanceGrf::GetPresentation(
rText = SW_RESSTR( STR_LUMINANCE );
else if( rText.Len() )
rText.Erase();
- ( rText += OUString::valueOf( GetValue() )) += '%';
+ ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
break;
default:
@@ -1141,7 +1141,7 @@ SfxItemPresentation SwContrastGrf::GetPresentation(
rText = SW_RESSTR( STR_CONTRAST );
else if( rText.Len() )
rText.Erase();
- ( rText += OUString::valueOf( GetValue() )) += '%';
+ ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
break;
default:
@@ -1177,7 +1177,7 @@ SfxItemPresentation SwChannelGrf::GetPresentation(
}
else if( rText.Len() )
rText.Erase();
- ( rText += OUString::valueOf( GetValue() )) += '%';
+ ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
break;
default:
@@ -1245,7 +1245,7 @@ SfxItemPresentation SwTransparencyGrf::GetPresentation(
rText = SW_RESSTR( STR_TRANSPARENCY );
else if( rText.Len() )
rText.Erase();
- ( rText += OUString::valueOf( GetValue() )) += '%';
+ ( rText += OUString::valueOf( static_cast<sal_Int32>( GetValue() ) )) += '%';
break;
default:
More information about the Libreoffice-commits
mailing list