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
e4fbe258
Kaydet (Commit)
e4fbe258
authored
Mar 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I9f8a64433177ba871fa020c0922a539c3e277bc2
üst
93a364a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
rscdef.cxx
rsc/source/tools/rscdef.cxx
+1
-1
rsctree.cxx
rsc/source/tools/rsctree.cxx
+5
-5
No files found.
rsc/source/tools/rscdef.cxx
Dosyayı görüntüle @
e4fbe258
...
@@ -548,7 +548,7 @@ bool RscFileTab::TestDef( sal_uLong lFileKey, size_t lPos,
...
@@ -548,7 +548,7 @@ bool RscFileTab::TestDef( sal_uLong lFileKey, size_t lPos,
if
(
lFileKey
==
pDefDec
->
GetFileKey
()
)
if
(
lFileKey
==
pDefDec
->
GetFileKey
()
)
{
{
RscFile
*
pFile
=
GetFile
(
pDefDec
->
GetFileKey
()
);
RscFile
*
pFile
=
GetFile
(
pDefDec
->
GetFileKey
()
);
if
(
pFile
&&
(
lPos
<=
pFile
->
aDefLst
.
GetPos
(
(
RscDefine
*
)
pDefDec
))
if
(
pFile
&&
(
lPos
<=
pFile
->
aDefLst
.
GetPos
(
const_cast
<
RscDefine
*>
(
pDefDec
)
))
&&
(
lPos
!=
ULONG_MAX
)
)
&&
(
lPos
!=
ULONG_MAX
)
)
{
{
return
false
;
return
false
;
...
...
rsc/source/tools/rsctree.cxx
Dosyayı görüntüle @
e4fbe258
...
@@ -39,7 +39,7 @@ void BiNode::EnumNodes( Link aLink ) const
...
@@ -39,7 +39,7 @@ void BiNode::EnumNodes( Link aLink ) const
{
{
if
(
Left
()
)
if
(
Left
()
)
Left
()
->
EnumNodes
(
aLink
);
Left
()
->
EnumNodes
(
aLink
);
aLink
.
Call
(
(
BiNode
*
)
this
);
aLink
.
Call
(
const_cast
<
BiNode
*>
(
this
)
);
if
(
Right
()
)
if
(
Right
()
)
Right
()
->
EnumNodes
(
aLink
);
Right
()
->
EnumNodes
(
aLink
);
}
}
...
@@ -185,7 +185,7 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const
...
@@ -185,7 +185,7 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const
if
(
Left
()
)
if
(
Left
()
)
{
{
if
(
((
NameNode
*
)
Left
())
->
Compare
(
pSearch
)
==
EQUAL
)
if
(
((
NameNode
*
)
Left
())
->
Compare
(
pSearch
)
==
EQUAL
)
return
(
NameNode
*
)
this
;
return
const_cast
<
NameNode
*>
(
this
)
;
return
((
NameNode
*
)
Left
())
->
SearchParent
(
pSearch
);
return
((
NameNode
*
)
Left
())
->
SearchParent
(
pSearch
);
}
}
}
}
...
@@ -194,7 +194,7 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const
...
@@ -194,7 +194,7 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const
if
(
Right
()
)
if
(
Right
()
)
{
{
if
(
((
NameNode
*
)
Right
())
->
Compare
(
pSearch
)
==
EQUAL
)
if
(
((
NameNode
*
)
Right
())
->
Compare
(
pSearch
)
==
EQUAL
)
return
(
NameNode
*
)
this
;
return
const_cast
<
NameNode
*>
(
this
)
;
return
((
NameNode
*
)
Right
())
->
SearchParent
(
pSearch
);
return
((
NameNode
*
)
Right
())
->
SearchParent
(
pSearch
);
}
}
}
}
...
@@ -219,7 +219,7 @@ NameNode* NameNode::Search( const NameNode * pSearch ) const
...
@@ -219,7 +219,7 @@ NameNode* NameNode::Search( const NameNode * pSearch ) const
return
((
NameNode
*
)
Right
())
->
Search
(
pSearch
);
return
((
NameNode
*
)
Right
())
->
Search
(
pSearch
);
}
}
else
else
return
(
NameNode
*
)
this
;
return
const_cast
<
NameNode
*>
(
this
)
;
return
NULL
;
return
NULL
;
}
}
...
@@ -242,7 +242,7 @@ NameNode* NameNode::Search( const void * pSearch ) const
...
@@ -242,7 +242,7 @@ NameNode* NameNode::Search( const void * pSearch ) const
return
((
NameNode
*
)
Right
())
->
Search
(
pSearch
);
return
((
NameNode
*
)
Right
())
->
Search
(
pSearch
);
}
}
else
else
return
(
NameNode
*
)
this
;
return
const_cast
<
NameNode
*>
(
this
)
;
return
NULL
;
return
NULL
;
}
}
...
...
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