diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-01-09 13:08:53 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-01-09 13:08:53 +0000 |
commit | 8948b137acc954778b6198b3e333945eb8c63d31 (patch) | |
tree | 88af76cad8cd856f7e62dffbfbb550deb7a10745 /sw | |
parent | 004c72330a132bbff09267459b35decdea3d8cf6 (diff) |
lame_OUString_valueOf_sal_Int32_casts += 6;
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uno/unoatxt.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/utlui/attrdesc.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx index 527a6ce44156..8c102ec0a963 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 ee63cd70e3b2..5b6a4c9ea49c 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: |