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
142094e7
Kaydet (Commit)
142094e7
authored
Mar 02, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: cstyleCast
Change-Id: Iad1307f5362606bf911caed73aea2fd09bf7b004
üst
aaaa7953
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
17 deletions
+15
-17
accessibility.cxx
starmath/source/accessibility.cxx
+1
-3
cfgitem.cxx
starmath/source/cfgitem.cxx
+13
-13
cfgitem.hxx
starmath/source/cfgitem.hxx
+1
-1
No files found.
starmath/source/accessibility.cxx
Dosyayı görüntüle @
142094e7
...
...
@@ -850,11 +850,9 @@ void SmEditSource::UpdateData()
SfxBroadcaster
&
SmEditSource
::
GetBroadcaster
()
const
{
return
((
SmEditSource
*
)
this
)
->
aBroadCaster
;
return
const_cast
<
SmEditSource
*>
(
this
)
->
aBroadCaster
;
}
SmViewForwarder
::
SmViewForwarder
(
SmEditAccessible
&
rAcc
)
:
rEditAcc
(
rAcc
)
{
...
...
starmath/source/cfgitem.cxx
Dosyayı görüntüle @
142094e7
...
...
@@ -387,7 +387,7 @@ void SmMathConfig::ReadSymbol( SmSym &rSymbol,
rName
+=
aTmp
;
}
const
Sequence
<
Any
>
aValues
=
((
SmMathConfig
*
)
this
)
->
GetProperties
(
aNames
);
const
Sequence
<
Any
>
aValues
=
const_cast
<
SmMathConfig
*>
(
this
)
->
GetProperties
(
aNames
);
if
(
nProps
&&
aValues
.
getLength
()
==
nProps
)
{
...
...
@@ -484,7 +484,7 @@ void SmMathConfig::Save()
void
SmMathConfig
::
GetSymbols
(
std
::
vector
<
SmSym
>
&
rSymbols
)
const
{
Sequence
<
OUString
>
aNodes
(
((
SmMathConfig
*
)
this
)
->
GetNodeNames
(
SYMBOL_LIST
)
);
Sequence
<
OUString
>
aNodes
(
const_cast
<
SmMathConfig
*>
(
this
)
->
GetNodeNames
(
SYMBOL_LIST
)
);
const
OUString
*
pNode
=
aNodes
.
getConstArray
();
sal_Int32
nNodes
=
aNodes
.
getLength
();
...
...
@@ -613,7 +613,7 @@ void SmMathConfig::ReadFontFormat( SmFontFormat &rFontFormat,
rName
+=
aTmp
;
}
const
Sequence
<
Any
>
aValues
=
((
SmMathConfig
*
)
this
)
->
GetProperties
(
aNames
);
const
Sequence
<
Any
>
aValues
=
const_cast
<
SmMathConfig
*>
(
this
)
->
GetProperties
(
aNames
);
if
(
nProps
&&
aValues
.
getLength
()
==
nProps
)
{
...
...
@@ -955,7 +955,7 @@ void SmMathConfig::SaveFormat()
const
SmFormat
&
SmMathConfig
::
GetStandardFormat
()
const
{
if
(
!
pFormat
)
((
SmMathConfig
*
)
this
)
->
LoadFormat
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadFormat
();
return
*
pFormat
;
}
...
...
@@ -983,7 +983,7 @@ void SmMathConfig::SetStandardFormat( const SmFormat &rFormat, bool bSaveFontFor
SmPrintSize
SmMathConfig
::
GetPrintSize
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
ePrintSize
;
}
...
...
@@ -1003,7 +1003,7 @@ void SmMathConfig::SetPrintSize( SmPrintSize eSize )
sal_uInt16
SmMathConfig
::
GetPrintZoomFactor
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
nPrintZoomFactor
;
}
...
...
@@ -1033,7 +1033,7 @@ void SmMathConfig::SetOtherIfNotEqual( bool &rbItem, bool bNewVal )
bool
SmMathConfig
::
IsPrintTitle
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bPrintTitle
;
}
...
...
@@ -1049,7 +1049,7 @@ void SmMathConfig::SetPrintTitle( bool bVal )
bool
SmMathConfig
::
IsPrintFormulaText
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bPrintFormulaText
;
}
...
...
@@ -1064,14 +1064,14 @@ void SmMathConfig::SetPrintFormulaText( bool bVal )
bool
SmMathConfig
::
IsSaveOnlyUsedSymbols
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bIsSaveOnlyUsedSymbols
;
}
bool
SmMathConfig
::
IsPrintFrame
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bPrintFrame
;
}
...
...
@@ -1095,7 +1095,7 @@ void SmMathConfig::SetSaveOnlyUsedSymbols( bool bVal )
bool
SmMathConfig
::
IsIgnoreSpacesRight
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bIgnoreSpacesRight
;
}
...
...
@@ -1111,7 +1111,7 @@ void SmMathConfig::SetIgnoreSpacesRight( bool bVal )
bool
SmMathConfig
::
IsAutoRedraw
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bAutoRedraw
;
}
...
...
@@ -1127,7 +1127,7 @@ void SmMathConfig::SetAutoRedraw( bool bVal )
bool
SmMathConfig
::
IsShowFormulaCursor
()
const
{
if
(
!
pOther
)
((
SmMathConfig
*
)
this
)
->
LoadOther
();
const_cast
<
SmMathConfig
*>
(
this
)
->
LoadOther
();
return
pOther
->
bFormulaCursor
;
}
...
...
starmath/source/cfgitem.hxx
Dosyayı görüntüle @
142094e7
...
...
@@ -129,7 +129,7 @@ protected:
SmFontFormatList
&
GetFontFormatList
();
const
SmFontFormatList
&
GetFontFormatList
()
const
{
return
((
SmMathConfig
*
)
this
)
->
GetFontFormatList
();
return
const_cast
<
SmMathConfig
*>
(
this
)
->
GetFontFormatList
();
}
public
:
...
...
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