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
0b1d8eff
Kaydet (Commit)
0b1d8eff
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: I4293d3e9244bb2ae3c6b8999c0d682e7f23138fb
üst
0eea902d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
imgprod.cxx
forms/source/component/imgprod.cxx
+2
-2
xpathlib.cxx
forms/source/xforms/xpathlib/xpathlib.cxx
+1
-1
No files found.
forms/source/component/imgprod.cxx
Dosyayı görüntüle @
0b1d8eff
...
@@ -98,9 +98,9 @@ ErrCode ImgProdLockBytes::ReadAt(sal_uInt64 const nPos,
...
@@ -98,9 +98,9 @@ ErrCode ImgProdLockBytes::ReadAt(sal_uInt64 const nPos,
{
{
if
(
GetStream
()
)
if
(
GetStream
()
)
{
{
(
(
SvStream
*
)
GetStream
()
)
->
ResetError
();
const_cast
<
SvStream
*>
(
GetStream
()
)
->
ResetError
();
const
ErrCode
nErr
=
SvLockBytes
::
ReadAt
(
nPos
,
pBuffer
,
nCount
,
pRead
);
const
ErrCode
nErr
=
SvLockBytes
::
ReadAt
(
nPos
,
pBuffer
,
nCount
,
pRead
);
(
(
SvStream
*
)
GetStream
()
)
->
ResetError
();
const_cast
<
SvStream
*>
(
GetStream
()
)
->
ResetError
();
return
nErr
;
return
nErr
;
}
}
else
else
...
...
forms/source/xforms/xpathlib/xpathlib.cxx
Dosyayı görüntüle @
0b1d8eff
...
@@ -280,7 +280,7 @@ void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int /*nargs*/)
...
@@ -280,7 +280,7 @@ void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int /*nargs*/)
DateTime
aDateTime
(
DateTime
::
SYSTEM
);
DateTime
aDateTime
(
DateTime
::
SYSTEM
);
OString
aDateTimeString
=
makeDateTimeString
(
aDateTime
);
OString
aDateTimeString
=
makeDateTimeString
(
aDateTime
);
xmlChar
*
pString
=
static_cast
<
xmlChar
*>
(
xmlMalloc
(
aDateTimeString
.
getLength
()
+
1
));
xmlChar
*
pString
=
static_cast
<
xmlChar
*>
(
xmlMalloc
(
aDateTimeString
.
getLength
()
+
1
));
strncpy
(
reinterpret_cast
<
char
*>
(
pString
),
(
char
*
)
aDateTimeString
.
getStr
(),
aDateTimeString
.
getLength
());
strncpy
(
reinterpret_cast
<
char
*>
(
pString
),
aDateTimeString
.
getStr
(),
aDateTimeString
.
getLength
());
pString
[
aDateTimeString
.
getLength
()]
=
0
;
pString
[
aDateTimeString
.
getLength
()]
=
0
;
xmlXPathReturnString
(
ctxt
,
pString
);
xmlXPathReturnString
(
ctxt
,
pString
);
}
}
...
...
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