summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-18 21:32:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 09:06:52 +0100
commit4423b09f69a744610faf7aca35649f5bdeb3cf7a (patch)
treed0fdc3ce15b4307b264c3ff30e7a7826c0e7cab4 /svl
parentc2c134cda1c501df6b9eec580a63131dbf798f12 (diff)
Some more loplugin:cstylecast: svl
Change-Id: I98f34cd3925189941d33056d709a5f5bc26412a7
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/documentlockfile.cxx2
-rw-r--r--svl/source/misc/sharecontrolfile.cxx2
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx12
3 files changed, 8 insertions, 8 deletions
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx
index cb708960c5eb..71b84f98cbfe 100644
--- a/svl/source/misc/documentlockfile.cxx
+++ b/svl/source/misc/documentlockfile.cxx
@@ -80,7 +80,7 @@ void DocumentLockFile::WriteEntryToStream( const uno::Sequence< OUString >& aEnt
}
OString aStringData( OUStringToOString( aBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ) );
- uno::Sequence< sal_Int8 > aData( (sal_Int8*)aStringData.getStr(), aStringData.getLength() );
+ uno::Sequence< sal_Int8 > aData( reinterpret_cast<sal_Int8 const *>(aStringData.getStr()), aStringData.getLength() );
xOutput->writeBytes( aData );
}
diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx
index c174bb0f79a8..b2b3ded20d55 100644
--- a/svl/source/misc/sharecontrolfile.cxx
+++ b/svl/source/misc/sharecontrolfile.cxx
@@ -222,7 +222,7 @@ void ShareControlFile::SetUsersDataAndStore( const uno::Sequence< uno::Sequence<
}
OString aStringData( OUStringToOString( aBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ) );
- uno::Sequence< sal_Int8 > aData( (sal_Int8*)aStringData.getStr(), aStringData.getLength() );
+ uno::Sequence< sal_Int8 > aData( reinterpret_cast<sal_Int8 const *>(aStringData.getStr()), aStringData.getLength() );
m_xOutputStream->writeBytes( aData );
m_aUsersData = aUsersData;
}
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 6588a4de4b30..59a9379f8416 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -156,7 +156,7 @@ static OUString getAsciiLine( const ::rtl::ByteSequence& buf )
}
outbuf[buf.getLength()*2] = '\0';
- aResult = OUString::createFromAscii( (sal_Char*)outbuf.getArray() );
+ aResult = OUString::createFromAscii( reinterpret_cast<char*>(outbuf.getArray()) );
return aResult;
}
@@ -466,10 +466,10 @@ vector< OUString > PasswordContainer::DecodePasswords( const OUString& aLine, co
::rtl::ByteSequence resSeq( aSeq.getLength() );
- result = rtl_cipher_decode ( aDecoder, (sal_uInt8*)aSeq.getArray(), aSeq.getLength(),
- (sal_uInt8*)resSeq.getArray(), resSeq.getLength() );
+ result = rtl_cipher_decode ( aDecoder, aSeq.getArray(), aSeq.getLength(),
+ reinterpret_cast<sal_uInt8*>(resSeq.getArray()), resSeq.getLength() );
- OUString aPasswd( ( sal_Char* )resSeq.getArray(), resSeq.getLength(), RTL_TEXTENCODING_UTF8 );
+ OUString aPasswd( reinterpret_cast<char*>(resSeq.getArray()), resSeq.getLength(), RTL_TEXTENCODING_UTF8 );
rtl_cipher_destroy (aDecoder);
@@ -517,8 +517,8 @@ OUString PasswordContainer::EncodePasswords( vector< OUString > lines, const OUS
{
::rtl::ByteSequence resSeq(aSeq.getLength()+1);
- result = rtl_cipher_encode ( aEncoder, (sal_uInt8*)aSeq.getStr(), aSeq.getLength()+1,
- (sal_uInt8*)resSeq.getArray(), resSeq.getLength() );
+ result = rtl_cipher_encode ( aEncoder, aSeq.getStr(), aSeq.getLength()+1,
+ reinterpret_cast<sal_uInt8*>(resSeq.getArray()), resSeq.getLength() );
/*
//test