Kaydet (Commit) 0deb7d16 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-cl loplugin: svtools

Change-Id: I3271529ffe48ebafd203b759a72741a9bdbba506
Reviewed-on: https://gerrit.libreoffice.org/29846Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 774e51d4
...@@ -801,7 +801,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk, ...@@ -801,7 +801,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk,
case SotClipboardFormatId::FILEGRPDESCRIPTOR: case SotClipboardFormatId::FILEGRPDESCRIPTOR:
{ {
Sequence< sal_Int8 > aSeq( sizeof( FILEGROUPDESCRIPTOR ) ); Sequence< sal_Int8 > aSeq( sizeof( FILEGROUPDESCRIPTOR ) );
FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getArray(); FILEGROUPDESCRIPTOR* pFDesc = reinterpret_cast<FILEGROUPDESCRIPTOR*>(aSeq.getArray());
FILEDESCRIPTOR& rFDesc1 = pFDesc->fgd[ 0 ]; FILEDESCRIPTOR& rFDesc1 = pFDesc->fgd[ 0 ];
pFDesc->cItems = 1; pFDesc->cItems = 1;
...@@ -810,7 +810,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk, ...@@ -810,7 +810,7 @@ bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk,
OStringBuffer aStr(OUStringToOString( OStringBuffer aStr(OUStringToOString(
rBmk.GetDescription(), eSysCSet)); 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] ) ) if( strchr( "\\/:*?\"<>|", aStr[nChar] ) )
aStr.remove(nChar--, 1); aStr.remove(nChar--, 1);
...@@ -1877,7 +1877,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo ...@@ -1877,7 +1877,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo
if (aSeq.getLength()) if (aSeq.getLength())
{ {
FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getConstArray(); FILEGROUPDESCRIPTOR const * pFDesc = reinterpret_cast<FILEGROUPDESCRIPTOR const *>(aSeq.getConstArray());
if( pFDesc->cItems ) if( pFDesc->cItems )
{ {
...@@ -1900,7 +1900,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo ...@@ -1900,7 +1900,7 @@ bool TransferableDataHelper::GetINetBookmark( const css::datatransfer::DataFlavo
{ {
aSeq = GetSequence(aFileContentFlavor, OUString()); aSeq = GetSequence(aFileContentFlavor, OUString());
if (aSeq.getLength()) 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 ));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment