diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-20 14:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-07 09:43:37 +0200 |
commit | 82625bb98e256b83351328d3bf2a14e3dd244eef (patch) | |
tree | 9b661850ae5df9ea27fcac063cfe61862046c8d1 /stoc/source/security | |
parent | 347af397cafa97cfa7d5027f83fff784ca04a397 (diff) |
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
buf.append( static_cast<sal_Unicode>('!') );
to:
buf.append( '!' );
Change-Id: Iacb03a61de65a895540940953b49620677b3d051
Diffstat (limited to 'stoc/source/security')
-rw-r--r-- | stoc/source/security/permissions.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 448db7ea9f75..03b6fd437b37 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -92,7 +92,7 @@ static inline OUString makeStrings( { buf.appendAscii( *strings ); if (mask << 1) // more items following - buf.append( (sal_Unicode)',' ); + buf.append( ',' ); } mask = (mask << 1); ++strings; @@ -247,19 +247,19 @@ OUString SocketPermission::toString() const SAL_THROW(()) buf.append( m_host ); if (m_resolvedHost) { - buf.append( (sal_Unicode)'[' ); + buf.append( '[' ); buf.append( m_ip ); - buf.append( (sal_Unicode)']' ); + buf.append( ']' ); } // port if (0 != m_lowerPort || 65535 != m_upperPort) { - buf.append( (sal_Unicode)':' ); + buf.append( ':' ); if (m_lowerPort > 0) buf.append( m_lowerPort ); if (m_upperPort > m_lowerPort) { - buf.append( (sal_Unicode)'-' ); + buf.append( '-' ); if (m_upperPort < 65535) buf.append( m_upperPort ); } |