summaryrefslogtreecommitdiff
path: root/ucb/workben
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-01-20 13:55:09 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-01-21 15:04:17 +0000
commit63bcb139b941a2eff1b5ad367046bca067e7d1f8 (patch)
treee3ecd8d2804dc60be4233508af0e78fdae0c9838 /ucb/workben
parentd912979b4fefaaf3011fdca2005db6699ea45405 (diff)
Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()
Change-Id: I2f11f2f15a652a9edc3c7e5b67c854debeed20de Reviewed-on: https://gerrit.libreoffice.org/1784 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'ucb/workben')
-rw-r--r--ucb/workben/ucb/ucbdemo.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/workben/ucb/ucbdemo.cxx b/ucb/workben/ucb/ucbdemo.cxx
index fdba04b8bd09..ab0697957deb 100644
--- a/ucb/workben/ucb/ucbdemo.cxx
+++ b/ucb/workben/ucb/ucbdemo.cxx
@@ -1066,7 +1066,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
{
OUString aId( xContentAccess->
queryContentIdentifierString() );
- aText = OUString::valueOf( static_cast<sal_Int64>(++n) ) + ") " + aId + " : ";
+ aText = OUString::number( ++n ) + ") " + aId + " : ";
}
// Title:
@@ -1150,7 +1150,7 @@ void UcbContent::open( const rtl::OUString & rName, const UniString& rInput,
if ( bTiming )
{
nTime = Time::GetSystemTicks() - nTime;
- OUString aText = "Operation took " + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
+ OUString aText = "Operation took " + OUString::number(nTime) + " ms.";
print( aText );
}
}
@@ -1176,7 +1176,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
OUString aText;
for ( sal_uInt32 i = aEntry.m_nLevel; i != 0; --i )
aText += '=';
- aText = aText + "LEVEL " + OUString::valueOf(static_cast<sal_Int64>(aEntry.m_nLevel));
+ aText = aText + "LEVEL " + OUString::number(aEntry.m_nLevel);
uno::Reference< ucb::XContentIdentifier > xID;
if ( aEntry.m_bUseIdentifier )
@@ -1225,7 +1225,7 @@ void UcbContent::openAll( Ucb& rUCB, bool bPrint, bool bTiming, bool bSort,
if ( bTiming )
{
nTime = Time::GetSystemTicks() - nTime;
- OUString aText = "Operation took " + OUString::valueOf(static_cast<sal_Int64>(nTime)) + " ms.";
+ OUString aText = "Operation took " + OUString::number(nTime) + " ms.";
print( aText );
}
}