Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
54bac4dd
Kaydet (Commit)
54bac4dd
authored
Haz 08, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I82142b0a0fabf9492ce4c4b9ebf4fded4af5a82d
üst
42590fd2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
test_sot.cxx
sot/qa/cppunit/test_sot.cxx
+1
-1
factory.cxx
sot/source/base/factory.cxx
+1
-1
formats.cxx
sot/source/base/formats.cxx
+1
-1
ucbstorage.cxx
sot/source/sdstor/ucbstorage.cxx
+10
-10
No files found.
sot/qa/cppunit/test_sot.cxx
Dosyayı görüntüle @
54bac4dd
...
...
@@ -62,7 +62,7 @@ namespace
CPPUNIT_ASSERT_MESSAGE
(
"check size #2"
,
xStream
->
remainingSize
()
==
nSize
);
// Read as much as we can, a corrupted FAT chain can cause real grief here
nReadableSize
=
xStream
->
Read
(
(
void
*
)
pData
,
nSize
);
nReadableSize
=
xStream
->
Read
(
static_cast
<
void
*>
(
pData
)
,
nSize
);
// fprintf(stderr, "readable size %d vs size %d remaining %d\n", nReadableSize, nSize, nReadableSize);
}
{
// Read the data backwards as well
...
...
sot/source/base/factory.cxx
Dosyayı görüntüle @
54bac4dd
...
...
@@ -145,7 +145,7 @@ void SotFactory::PutSuperClass( const SotFactory * pFact )
else
{
const
SotFactory
**
pTmp
=
new
const
SotFactory
*
[
nSuperCount
];
memcpy
(
(
void
*
)
pTmp
,
(
void
*
)
pSuperClasses
,
memcpy
(
static_cast
<
void
*>
(
pTmp
),
static_cast
<
void
*>
(
pSuperClasses
)
,
sizeof
(
void
*
)
*
(
nSuperCount
-
1
)
);
delete
[]
pSuperClasses
;
pSuperClasses
=
pTmp
;
...
...
sot/source/base/formats.cxx
Dosyayı görüntüle @
54bac4dd
...
...
@@ -1414,7 +1414,7 @@ static sal_uInt16 GetTransferableAction_Impl(
if
(
aAny
.
hasValue
()
)
{
Sequence
<
sal_Int8
>
aSeq
;
aAny
>>=
aSeq
;
SvMemoryStream
aMemStm
(
(
void
*
)
aSeq
.
getConstArray
(
),
aSeq
.
getLength
(),
StreamMode
::
READ
);
SvMemoryStream
aMemStm
(
const_cast
<
sal_Int8
*>
(
aSeq
.
getConstArray
()
),
aSeq
.
getLength
(),
StreamMode
::
READ
);
FileList
aFileList
;
ReadFileList
(
aMemStm
,
aFileList
);
...
...
sot/source/sdstor/ucbstorage.cxx
Dosyayı görüntüle @
54bac4dd
...
...
@@ -149,7 +149,7 @@ sal_Int32 SAL_CALL FileStreamWrapper_Impl::readBytes(Sequence< sal_Int8 >& aData
aData
.
realloc
(
nBytesToRead
);
sal_uInt32
nRead
=
m_pSvStream
->
Read
(
(
void
*
)
aData
.
getArray
(
),
nBytesToRead
);
sal_uInt32
nRead
=
m_pSvStream
->
Read
(
static_cast
<
void
*>
(
aData
.
getArray
()
),
nBytesToRead
);
checkError
();
// Wenn gelesene Zeichen < MaxLength, Sequence anpassen
...
...
@@ -901,13 +901,13 @@ sal_uLong UCBStorageStream_Impl::GetData( void* pData, sal_uLong nSize )
// copy this tail to the temporary stream
sal_uLong
aToRead
=
nSize
-
aResult
;
pData
=
(
void
*
)
(
static_cast
<
char
*>
(
pData
)
+
aResult
);
pData
=
static_cast
<
void
*>
(
static_cast
<
char
*>
(
pData
)
+
aResult
);
try
{
Sequence
<
sal_Int8
>
aData
(
aToRead
);
sal_uLong
aReaded
=
m_rSource
->
readBytes
(
aData
,
aToRead
);
aResult
+=
m_pStream
->
Write
(
(
void
*
)
aData
.
getArray
(
),
aReaded
);
aResult
+=
m_pStream
->
Write
(
static_cast
<
void
*>
(
aData
.
getArray
()
),
aReaded
);
memcpy
(
pData
,
aData
.
getArray
(),
aReaded
);
}
catch
(
const
Exception
&
e
)
...
...
@@ -1363,13 +1363,13 @@ const SvStream* UCBStorageStream::GetSvStream() const
SvStream
*
UCBStorageStream
::
GetModifySvStream
()
{
return
(
SvStream
*
)
pImp
;
return
static_cast
<
SvStream
*>
(
pImp
)
;
}
bool
UCBStorageStream
::
Equals
(
const
BaseStorageStream
&
rStream
)
const
{
// ???
return
((
BaseStorageStream
*
)
this
)
==
&
rStream
;
return
static_cast
<
BaseStorageStream
const
*>
(
this
)
==
&
rStream
;
}
bool
UCBStorageStream
::
Commit
()
...
...
@@ -2605,8 +2605,8 @@ UCBStorageElement_Impl* UCBStorage::FindElement_Impl( const OUString& rName ) co
bool
UCBStorage
::
CopyTo
(
BaseStorage
*
pDestStg
)
const
{
DBG_ASSERT
(
pDestStg
!=
((
BaseStorage
*
)
this
),
"Self-Copying is not possible!"
);
if
(
pDestStg
==
((
BaseStorage
*
)
this
)
)
DBG_ASSERT
(
pDestStg
!=
static_cast
<
BaseStorage
const
*>
(
this
),
"Self-Copying is not possible!"
);
if
(
pDestStg
==
static_cast
<
BaseStorage
const
*>
(
this
)
)
return
false
;
// perhaps it's also a problem if one storage is a parent of the other ?!
...
...
@@ -2639,7 +2639,7 @@ bool UCBStorage::CopyTo( const OUString& rElemName, BaseStorage* pDest, const OU
if
(
rElemName
.
isEmpty
()
)
return
false
;
if
(
pDest
==
((
BaseStorage
*
)
this
)
)
if
(
pDest
==
static_cast
<
BaseStorage
*>
(
this
)
)
{
// can't double an element
return
false
;
...
...
@@ -3001,7 +3001,7 @@ bool UCBStorage::MoveTo( const OUString& rEleName, BaseStorage* pNewSt, const OU
if
(
rEleName
.
isEmpty
()
||
rNewName
.
isEmpty
()
)
return
false
;
if
(
pNewSt
==
((
BaseStorage
*
)
this
)
&&
!
FindElement_Impl
(
rNewName
)
)
if
(
pNewSt
==
static_cast
<
BaseStorage
*>
(
this
)
&&
!
FindElement_Impl
(
rNewName
)
)
{
return
Rename
(
rEleName
,
rNewName
);
}
...
...
@@ -3066,7 +3066,7 @@ const SvStream* UCBStorage::GetSvStream() const
bool
UCBStorage
::
Equals
(
const
BaseStorage
&
rStorage
)
const
{
// ???
return
((
BaseStorage
*
)
this
)
==
&
rStorage
;
return
static_cast
<
BaseStorage
const
*>
(
this
)
==
&
rStorage
;
}
bool
UCBStorage
::
IsStorageFile
(
SvStream
*
pFile
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment