diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:46:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-15 07:59:29 +0000 |
commit | 0deb7d16f32b4c89260f6aac29fc29f4e5bd8261 (patch) | |
tree | 3ecd653aa926dba61ac5016850c91b2ecb38b531 | |
parent | 774e51d44c3bab7652c8807bbf2ed68293b47a6e (diff) |
clang-cl loplugin: svtools
Change-Id: I3271529ffe48ebafd203b759a72741a9bdbba506
Reviewed-on: https://gerrit.libreoffice.org/29846
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | svtools/source/misc/transfer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 8efdce0b1512..c271ecb78bf5 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -801,7 +801,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk, case SotClipboardFormatId::FILEGRPDESCRIPTOR: { Sequence< sal_Int8 > aSeq( sizeof( FILEGROUPDESCRIPTOR ) ); - FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getArray(); + FILEGROUPDESCRIPTOR* pFDesc = reinterpret_cast<FILEGROUPDESCRIPTOR*>(aSeq.getArray()); FILEDESCRIPTOR& rFDesc1 = pFDesc->fgd[ 0 ]; pFDesc->cItems = 1; @@ -810,7 +810,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk, OStringBuffer aStr(OUStringToOString( rBmk.GetDescription(), eSysCSet)); - for( sal_uInt16 nChar = 0; nChar < aStr.getLength(); ++nChar ) + for( sal_Int32 nChar = 0; nChar < aStr.getLength(); ++nChar ) if( strchr( "\\/:*?\"<>|", aStr[nChar] ) ) aStr.remove(nChar--, 1); @@ -1877,7 +1877,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo if (aSeq.getLength()) { - FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getConstArray(); + FILEGROUPDESCRIPTOR const * pFDesc = reinterpret_cast<FILEGROUPDESCRIPTOR const *>(aSeq.getConstArray()); if( pFDesc->cItems ) { @@ -1900,7 +1900,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo { aSeq = GetSequence(aFileContentFlavor, OUString()); if (aSeq.getLength()) - pStream.reset(new SvMemoryStream( (sal_Char*) aSeq.getConstArray(), aSeq.getLength(), StreamMode::STD_READ )); + pStream.reset(new SvMemoryStream( const_cast<sal_Int8 *>(aSeq.getConstArray()), aSeq.getLength(), StreamMode::STD_READ )); } } |