summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-17 19:01:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:50 +0100
commitb70b4e644b5bb5356509505855418453dc621cfc (patch)
tree0a2441aa91947032d398b688f73553ff4d5a4afb /include
parent2e160b1e0e5b28b8a6ddfa07fc6ffff1c6e590bc (diff)
Some more loplugin:cstylecast: sal
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
Diffstat (limited to 'include')
-rw-r--r--include/osl/socket.hxx2
-rw-r--r--include/rtl/byteseq.h2
-rw-r--r--include/rtl/byteseq.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/osl/socket.hxx b/include/osl/socket.hxx
index b8557efc0e69..4d41bed3c20c 100644
--- a/include/osl/socket.hxx
+++ b/include/osl/socket.hxx
@@ -112,7 +112,7 @@ namespace osl
inline ::rtl::ByteSequence SAL_CALL SocketAddr::getAddr( oslSocketResult *pResult ) const
{
::rtl::ByteSequence sequence;
- oslSocketResult result = osl_getAddrOfSocketAddr( m_handle,(sal_Sequence **) &sequence );
+ oslSocketResult result = osl_getAddrOfSocketAddr( m_handle, reinterpret_cast<sal_Sequence **>(&sequence) );
if( pResult )
*pResult = result;
return sequence;
diff --git a/include/rtl/byteseq.h b/include/rtl/byteseq.h
index 1365a91a5e24..47712bbbd05d 100644
--- a/include/rtl/byteseq.h
+++ b/include/rtl/byteseq.h
@@ -242,7 +242,7 @@ public:
@return pointer to byte array
*/
inline const sal_Int8 * SAL_CALL getConstArray() const
- { return (const sal_Int8 *)_pSequence->elements; }
+ { return reinterpret_cast<sal_Int8 *>(_pSequence->elements); }
/** Gets a pointer to elements array for READING AND WRITING. In general if the sequence
has a handle acquired by other sequences (reference count > 1), then a new sequence is
created copying all bytes to keep value semantics!
diff --git a/include/rtl/byteseq.hxx b/include/rtl/byteseq.hxx
index c49e37125998..494b17c4d8bd 100644
--- a/include/rtl/byteseq.hxx
+++ b/include/rtl/byteseq.hxx
@@ -95,7 +95,7 @@ inline sal_Int8 * ByteSequence::getArray()
::rtl_byte_sequence_reference2One( &_pSequence );
if (_pSequence == 0)
throw ::std::bad_alloc();
- return (sal_Int8 *)_pSequence->elements;
+ return reinterpret_cast<sal_Int8 *>(_pSequence->elements);
}
inline void ByteSequence::realloc( sal_Int32 nSize )