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
67c19855
Kaydet (Commit)
67c19855
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: Iee4396c5ac715e1b211c5fa6e1cb66b1e95e3f60
üst
af3cb5e8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
dialog.hxx
starmath/inc/dialog.hxx
+1
-1
format.hxx
starmath/inc/format.hxx
+1
-1
node.hxx
starmath/inc/node.hxx
+2
-2
symbol.hxx
starmath/inc/symbol.hxx
+1
-1
rect.cxx
starmath/source/rect.cxx
+1
-1
smmod.cxx
starmath/source/smmod.cxx
+3
-3
No files found.
starmath/inc/dialog.hxx
Dosyayı görüntüle @
67c19855
...
...
@@ -445,7 +445,7 @@ class SmSymDefineDialog : public ModalDialog
SmSym
*
GetSymbol
(
const
ComboBox
&
rComboBox
);
const
SmSym
*
GetSymbol
(
const
ComboBox
&
rComboBox
)
const
{
return
((
SmSymDefineDialog
*
)
this
)
->
GetSymbol
(
rComboBox
);
return
const_cast
<
SmSymDefineDialog
*>
(
this
)
->
GetSymbol
(
rComboBox
);
}
void
InitColor_Impl
();
...
...
starmath/inc/format.hxx
Dosyayı görüntüle @
67c19855
...
...
@@ -149,7 +149,7 @@ public:
void
RequestApplyChanges
()
const
{
((
SmFormat
*
)
this
)
->
Broadcast
(
SfxSimpleHint
(
HINT_FORMATCHANGED
));
const_cast
<
SmFormat
*>
(
this
)
->
Broadcast
(
SfxSimpleHint
(
HINT_FORMATCHANGED
));
}
};
...
...
starmath/inc/node.hxx
Dosyayı görüntüle @
67c19855
...
...
@@ -1029,7 +1029,7 @@ public:
/** Get body (Not NULL) */
const
SmNode
*
GetBody
()
const
{
return
((
SmSubSupNode
*
)
this
)
->
GetBody
();
return
const_cast
<
SmSubSupNode
*>
(
this
)
->
GetBody
();
}
void
SetUseLimits
(
bool
bVal
)
{
bUseLimits
=
bVal
;
}
...
...
@@ -1183,7 +1183,7 @@ public:
SmNode
*
GetSymbol
();
const
SmNode
*
GetSymbol
()
const
{
return
((
SmOperNode
*
)
this
)
->
GetSymbol
();
return
const_cast
<
SmOperNode
*>
(
this
)
->
GetSymbol
();
}
long
CalcSymbolHeight
(
const
SmNode
&
rSymbol
,
const
SmFormat
&
rFormat
)
const
;
...
...
starmath/inc/symbol.hxx
Dosyayı görüntüle @
67c19855
...
...
@@ -144,7 +144,7 @@ public:
SmSym
*
GetSymbolByName
(
const
OUString
&
rSymbolName
);
const
SmSym
*
GetSymbolByName
(
const
OUString
&
rSymbolName
)
const
{
return
((
SmSymbolManager
*
)
this
)
->
GetSymbolByName
(
rSymbolName
);
return
const_cast
<
SmSymbolManager
*>
(
this
)
->
GetSymbolByName
(
rSymbolName
);
}
bool
IsModified
()
const
{
return
m_bModified
;
}
...
...
starmath/source/rect.cxx
Dosyayı görüntüle @
67c19855
...
...
@@ -608,7 +608,7 @@ bool SmGetGlyphBoundRect(const OutputDevice &rDev,
// get a device where 'OutputDevice::GetTextBoundRect' will be successful
OutputDevice
*
pGlyphDev
;
if
(
rDev
.
GetOutDevType
()
!=
OUTDEV_PRINTER
)
pGlyphDev
=
(
OutputDevice
*
)
&
rDev
;
pGlyphDev
=
const_cast
<
OutputDevice
*>
(
&
rDev
)
;
else
{
// since we format for the printer (where GetTextBoundRect will fail)
...
...
starmath/source/smmod.cxx
Dosyayı görüntüle @
67c19855
...
...
@@ -188,13 +188,13 @@ SmModule::~SmModule()
void
SmModule
::
_CreateSysLocale
()
const
{
SmModule
*
pThis
=
(
SmModule
*
)
this
;
SmModule
*
pThis
=
const_cast
<
SmModule
*>
(
this
)
;
pThis
->
pSysLocale
=
new
SvtSysLocale
;
}
void
SmModule
::
_CreateVirtualDev
()
const
{
SmModule
*
pThis
=
(
SmModule
*
)
this
;
SmModule
*
pThis
=
const_cast
<
SmModule
*>
(
this
)
;
pThis
->
pVirtualDev
=
new
VirtualDevice
;
pThis
->
pVirtualDev
->
SetReferenceDevice
(
VirtualDevice
::
REFDEV_MODE_MSO1
);
}
...
...
@@ -249,7 +249,7 @@ SmSymbolManager & SmModule::GetSymbolManager()
SmLocalizedSymbolData
&
SmModule
::
GetLocSymbolData
()
const
{
if
(
!
pLocSymbolData
)
((
SmModule
*
)
this
)
->
pLocSymbolData
=
new
SmLocalizedSymbolData
;
const_cast
<
SmModule
*>
(
this
)
->
pLocSymbolData
=
new
SmLocalizedSymbolData
;
return
*
pLocSymbolData
;
}
...
...
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