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
696f96f3
Kaydet (Commit)
696f96f3
authored
May 29, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:redundantcast: const_cast to same type
Change-Id: I610fd4cf9339fd5c18eb77e7c94ffd0f99e9b125
üst
14895324
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
9 deletions
+5
-9
glyphcache.cxx
vcl/generic/glyphs/glyphcache.cxx
+2
-6
svapp.cxx
vcl/source/app/svapp.cxx
+1
-1
impgraph.cxx
vcl/source/gdi/impgraph.cxx
+1
-1
SalGtkPicker.cxx
vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+1
-1
No files found.
vcl/generic/glyphs/glyphcache.cxx
Dosyayı görüntüle @
696f96f3
...
...
@@ -218,13 +218,9 @@ ServerFont* GlyphCache::CacheFont( const FontSelectPattern& rFontSelData )
void
GlyphCache
::
UncacheFont
(
ServerFont
&
rServerFont
)
{
// the interface for rServerFont must be const because a
// user who wants to release it only got const ServerFonts.
// The caching algorithm needs a non-const object
ServerFont
*
pFont
=
const_cast
<
ServerFont
*>
(
&
rServerFont
);
if
(
(
pFont
->
Release
()
<=
0
)
&&
(
mnMaxSize
<=
mnBytesUsed
)
)
if
(
(
rServerFont
.
Release
()
<=
0
)
&&
(
mnMaxSize
<=
mnBytesUsed
)
)
{
mpCurrentGCFont
=
p
Font
;
mpCurrentGCFont
=
&
rServer
Font
;
GarbageCollect
();
}
}
...
...
vcl/source/app/svapp.cxx
Dosyayı görüntüle @
696f96f3
...
...
@@ -1668,7 +1668,7 @@ ImplDelData::~ImplDelData()
if
(
!
mbDel
&&
mpWindow
)
{
// the window still exists but we were not removed
const_cast
<
vcl
::
Window
*>
(
mpWindow
.
get
()
)
->
ImplRemoveDel
(
this
);
mpWindow
.
get
(
)
->
ImplRemoveDel
(
this
);
mpWindow
=
NULL
;
}
}
...
...
vcl/source/gdi/impgraph.cxx
Dosyayı görüntüle @
696f96f3
...
...
@@ -697,7 +697,7 @@ void ImpGraphic::ImplSetPrefSize( const Size& rPrefSize )
if
(
maSvgData
.
get
()
&&
maEx
.
IsEmpty
())
{
// use maEx as local buffer for rendered svg
const_cast
<
ImpGraphic
*
>
(
this
)
->
maEx
=
maSvgData
->
getReplacement
();
maEx
=
maSvgData
->
getReplacement
();
}
// #108077# Push through pref size to animation object,
...
...
vcl/unx/gtk/fpicker/SalGtkPicker.cxx
Dosyayı görüntüle @
696f96f3
...
...
@@ -47,7 +47,7 @@ OUString SalGtkPicker::uritounicode(const gchar* pIn)
if
(
!
pIn
)
return
OUString
();
OUString
sURL
(
const_cast
<
const
sal_Char
*>
(
pIn
)
,
strlen
(
pIn
),
OUString
sURL
(
pIn
,
strlen
(
pIn
),
RTL_TEXTENCODING_UTF8
);
INetURLObject
aURL
(
sURL
);
...
...
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