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
a2320eaf
Kaydet (Commit)
a2320eaf
authored
Eyl 26, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin: cstylecast
Change-Id: I28443b688f8ab752162846e5cea661f26d269cad
üst
0ecf6afb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
26 deletions
+28
-26
basecontainercontrol.cxx
UnoControls/source/base/basecontainercontrol.cxx
+2
-2
multiplexer.cxx
UnoControls/source/base/multiplexer.cxx
+1
-1
stgcache.cxx
sot/source/sdstor/stgcache.cxx
+1
-1
stgdir.cxx
sot/source/sdstor/stgdir.cxx
+16
-14
stgio.cxx
sot/source/sdstor/stgio.cxx
+1
-1
ucbstorage.cxx
sot/source/sdstor/ucbstorage.cxx
+7
-7
No files found.
UnoControls/source/base/basecontainercontrol.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -266,7 +266,7 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re
// Send event
while
(
aIterator
.
hasMoreElements
()
)
{
((
XContainerListener
*
)
aIterator
.
next
())
->
elementInserted
(
aEvent
);
static_cast
<
XContainerListener
*>
(
aIterator
.
next
())
->
elementInserted
(
aEvent
);
}
}
}
...
...
@@ -313,7 +313,7 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl >
while
(
aIterator
.
hasMoreElements
()
)
{
((
XContainerListener
*
)
aIterator
.
next
())
->
elementRemoved
(
aEvent
);
static_cast
<
XContainerListener
*>
(
aIterator
.
next
())
->
elementRemoved
(
aEvent
);
}
}
// Break "for" !
...
...
UnoControls/source/base/multiplexer.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -48,7 +48,7 @@ namespace unocontrols{
{ \
if( aIterator.hasMoreElements() ) \
{ \
INTERFACE * pListener =
(INTERFACE *)aIterator.next();
\
INTERFACE * pListener =
static_cast<INTERFACE *>(aIterator.next());
\
try \
{ \
pListener->METHOD( aLocalEvent ); \
...
...
sot/source/sdstor/stgcache.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -308,7 +308,7 @@ void StgCache::Close()
{
if
(
bFile
)
{
((
SvFileStream
*
)
pStrm
)
->
Close
();
static_cast
<
SvFileStream
*>
(
pStrm
)
->
Close
();
SetError
(
pStrm
->
GetError
()
);
}
}
...
...
sot/source/sdstor/stgdir.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -96,7 +96,7 @@ short StgDirEntry::Compare( const StgAvlNode* p ) const
short
nResult
=
-
1
;
if
(
p
)
{
const
StgDirEntry
*
pEntry
=
(
const
StgDirEntry
*
)
p
;
const
StgDirEntry
*
pEntry
=
static_cast
<
const
StgDirEntry
*>
(
p
)
;
nResult
=
aEntry
.
Compare
(
pEntry
->
aEntry
);
}
return
nResult
;
...
...
@@ -114,11 +114,13 @@ void StgDirEntry::Enum( sal_Int32& n )
nEntry
=
n
++
;
if
(
pLeft
)
{
((
StgDirEntry
*
)
pLeft
)
->
Enum
(
n
);
nLeft
=
((
StgDirEntry
*
)
pLeft
)
->
nEntry
;
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
Enum
(
n
);
nLeft
=
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
nEntry
;
}
if
(
pRight
)
{
((
StgDirEntry
*
)
pRight
)
->
Enum
(
n
);
nRight
=
((
StgDirEntry
*
)
pRight
)
->
nEntry
;
static_cast
<
StgDirEntry
*>
(
pRight
)
->
Enum
(
n
);
nRight
=
static_cast
<
StgDirEntry
*>
(
pRight
)
->
nEntry
;
}
if
(
pDown
)
{
...
...
@@ -135,9 +137,9 @@ void StgDirEntry::Enum( sal_Int32& n )
void
StgDirEntry
::
DelTemp
(
bool
bForce
)
{
if
(
pLeft
)
((
StgDirEntry
*
)
pLeft
)
->
DelTemp
(
false
);
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
DelTemp
(
false
);
if
(
pRight
)
((
StgDirEntry
*
)
pRight
)
->
DelTemp
(
false
);
static_cast
<
StgDirEntry
*>
(
pRight
)
->
DelTemp
(
false
);
if
(
pDown
)
{
// If the storage is dead, of course all elements are dead, too
...
...
@@ -173,10 +175,10 @@ bool StgDirEntry::Store( StgDirStrm& rStrm )
// Do not store the current (maybe not commited) entry
aSave
.
Store
(
pEntry
);
if
(
pLeft
)
if
(
!
((
StgDirEntry
*
)
pLeft
)
->
Store
(
rStrm
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
Store
(
rStrm
)
)
return
false
;
if
(
pRight
)
if
(
!
((
StgDirEntry
*
)
pRight
)
->
Store
(
rStrm
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pRight
)
->
Store
(
rStrm
)
)
return
false
;
if
(
pDown
)
if
(
!
pDown
->
Store
(
rStrm
)
)
...
...
@@ -213,10 +215,10 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
if
(
!
StoreStream
(
rIo
)
)
return
false
;
if
(
pLeft
)
if
(
!
((
StgDirEntry
*
)
pLeft
)
->
StoreStreams
(
rIo
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
StoreStreams
(
rIo
)
)
return
false
;
if
(
pRight
)
if
(
!
((
StgDirEntry
*
)
pRight
)
->
StoreStreams
(
rIo
)
)
if
(
!
static_cast
<
StgDirEntry
*>
(
pRight
)
->
StoreStreams
(
rIo
)
)
return
false
;
if
(
pDown
)
if
(
!
pDown
->
StoreStreams
(
rIo
)
)
...
...
@@ -230,9 +232,9 @@ void StgDirEntry::RevertAll()
{
aEntry
=
aSave
;
if
(
pLeft
)
((
StgDirEntry
*
)
pLeft
)
->
RevertAll
();
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
RevertAll
();
if
(
pRight
)
((
StgDirEntry
*
)
pRight
)
->
RevertAll
();
static_cast
<
StgDirEntry
*>
(
pRight
)
->
RevertAll
();
if
(
pDown
)
pDown
->
RevertAll
();
}
...
...
@@ -243,9 +245,9 @@ bool StgDirEntry::IsDirty()
{
if
(
bDirty
||
bInvalid
)
return
true
;
if
(
pLeft
&&
((
StgDirEntry
*
)
pLeft
)
->
IsDirty
()
)
if
(
pLeft
&&
static_cast
<
StgDirEntry
*>
(
pLeft
)
->
IsDirty
()
)
return
true
;
if
(
pRight
&&
((
StgDirEntry
*
)
pRight
)
->
IsDirty
()
)
if
(
pRight
&&
static_cast
<
StgDirEntry
*>
(
pRight
)
->
IsDirty
()
)
return
true
;
if
(
pDown
&&
pDown
->
IsDirty
()
)
return
true
;
...
...
@@ -985,7 +987,7 @@ StgDirEntry* StgDirStrm::Find( StgDirEntry& rStg, const OUString& rName )
}
// Look in the directory attached to the entry
StgDirEntry
aTest
(
aEntry
);
return
(
StgDirEntry
*
)
rStg
.
pDown
->
Find
(
&
aTest
);
return
static_cast
<
StgDirEntry
*>
(
rStg
.
pDown
->
Find
(
&
aTest
)
);
}
else
return
NULL
;
...
...
sot/source/sdstor/stgio.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -357,7 +357,7 @@ sal_uLong StgIo::ValidateFATs()
bool
bRet1
=
!
pV
->
IsError
(),
bRet2
=
true
;
delete
pV
;
SvFileStream
*
pFileStrm
=
(
SvFileStream
*
)
GetStrm
(
);
SvFileStream
*
pFileStrm
=
static_cast
<
SvFileStream
*>
(
GetStrm
()
);
if
(
!
pFileStrm
)
return
FAT_INMEMORYERROR
;
...
...
sot/source/sdstor/ucbstorage.cxx
Dosyayı görüntüle @
a2320eaf
...
...
@@ -2018,9 +2018,9 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert
aPath
+=
m_aName
;
aPath
+=
"/"
;
aProps
[
0
].
Name
=
"MediaType"
;
aProps
[
0
].
Value
<<=
(
OUString
)
m_aContentType
;
aProps
[
0
].
Value
<<=
m_aContentType
;
aProps
[
1
].
Name
=
"FullPath"
;
aProps
[
1
].
Value
<<=
(
OUString
)
aPath
;
aProps
[
1
].
Value
<<=
aPath
;
rSequence
[
nProps
++
]
=
aProps
;
if
(
m_bIsRoot
)
...
...
@@ -2041,9 +2041,9 @@ void UCBStorage_Impl::GetProps( sal_Int32& nProps, Sequence < Sequence < Propert
OUString
aElementPath
(
aPath
);
aElementPath
+=
pElement
->
m_aName
;
aProps
[
0
].
Name
=
"MediaType"
;
aProps
[
0
].
Value
<<=
(
OUString
)
pElement
->
GetContentType
();
aProps
[
0
].
Value
<<=
pElement
->
GetContentType
();
aProps
[
1
].
Name
=
"FullPath"
;
aProps
[
1
].
Value
<<=
(
OUString
)
aElementPath
;
aProps
[
1
].
Value
<<=
aElementPath
;
rSequence
[
nProps
++
]
=
aProps
;
}
}
...
...
@@ -2202,7 +2202,7 @@ sal_Int16 UCBStorage_Impl::Commit()
// name ( title ) of the element was changed
nLocalRet
=
COMMIT_RESULT_SUCCESS
;
Any
aAny
;
aAny
<<=
(
OUString
)
pElement
->
m_aName
;
aAny
<<=
pElement
->
m_aName
;
pContent
->
setPropertyValue
(
"Title"
,
aAny
);
}
...
...
@@ -2211,7 +2211,7 @@ sal_Int16 UCBStorage_Impl::Commit()
// mediatype of the element was changed
nLocalRet
=
COMMIT_RESULT_SUCCESS
;
Any
aAny
;
aAny
<<=
(
OUString
)
pElement
->
GetContentType
();
aAny
<<=
pElement
->
GetContentType
();
pContent
->
setPropertyValue
(
"MediaType"
,
aAny
);
}
...
...
@@ -2258,7 +2258,7 @@ sal_Int16 UCBStorage_Impl::Commit()
// commit the media type to the JAR file
// clipboard format and ClassId will be retrieved from the media type when the file is loaded again
Any
aType
;
aType
<<=
(
OUString
)
m_aContentType
;
aType
<<=
m_aContentType
;
m_pContent
->
setPropertyValue
(
"MediaType"
,
aType
);
if
(
m_bIsLinked
)
...
...
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