diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 19:01:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:50 +0100 |
commit | b70b4e644b5bb5356509505855418453dc621cfc (patch) | |
tree | 0a2441aa91947032d398b688f73553ff4d5a4afb /include/rtl | |
parent | 2e160b1e0e5b28b8a6ddfa07fc6ffff1c6e590bc (diff) |
Some more loplugin:cstylecast: sal
Change-Id: Ie54d340478412e62b87d66e287fd8a3963e97898
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/byteseq.h | 2 | ||||
-rw-r--r-- | include/rtl/byteseq.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
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 ) |