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
0c141f2e
Kaydet (Commit)
0c141f2e
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: I6a27fd990895ff36b35d2de6278ca0416e6c00f7
üst
a98c1692
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
filinl.hxx
ucb/source/ucp/file/filinl.hxx
+5
-5
gio_seekable.cxx
ucb/source/ucp/gio/gio_seekable.cxx
+2
-2
NeonUri.cxx
ucb/source/ucp/webdav-neon/NeonUri.cxx
+3
-3
No files found.
ucb/source/ucp/file/filinl.hxx
Dosyayı görüntüle @
0c141f2e
...
...
@@ -45,23 +45,23 @@ inline const sal_Int16& SAL_CALL shell::MyProperty::getAttributes() const
}
inline
void
SAL_CALL
shell
::
MyProperty
::
setHandle
(
const
sal_Int32
&
__Handle
)
const
{
((
MyProperty
*
)
this
)
->
Handle
=
__Handle
;
const_cast
<
MyProperty
*>
(
this
)
->
Handle
=
__Handle
;
}
inline
void
SAL_CALL
shell
::
MyProperty
::
setType
(
const
com
::
sun
::
star
::
uno
::
Type
&
__Typ
)
const
{
((
MyProperty
*
)
this
)
->
Typ
=
__Typ
;
const_cast
<
MyProperty
*>
(
this
)
->
Typ
=
__Typ
;
}
inline
void
SAL_CALL
shell
::
MyProperty
::
setValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
__Value
)
const
{
((
MyProperty
*
)
this
)
->
Value
=
__Value
;
const_cast
<
MyProperty
*>
(
this
)
->
Value
=
__Value
;
}
inline
void
SAL_CALL
shell
::
MyProperty
::
setState
(
const
com
::
sun
::
star
::
beans
::
PropertyState
&
__State
)
const
{
((
MyProperty
*
)
this
)
->
State
=
__State
;
const_cast
<
MyProperty
*>
(
this
)
->
State
=
__State
;
}
inline
void
SAL_CALL
shell
::
MyProperty
::
setAttributes
(
const
sal_Int16
&
__Attributes
)
const
{
((
MyProperty
*
)
this
)
->
Attributes
=
__Attributes
;
const_cast
<
MyProperty
*>
(
this
)
->
Attributes
=
__Attributes
;
}
...
...
ucb/source/ucp/gio/gio_seekable.cxx
Dosyayı görüntüle @
0c141f2e
...
...
@@ -86,8 +86,8 @@ sal_Int64 SAL_CALL Seekable::getLength() throw( io::IOException, uno::RuntimeExc
sal_uInt64
nSize
=
0
;
GFileInfo
*
pInfo
=
G_IS_FILE_INPUT_STREAM
(
mpStream
)
?
g_file_input_stream_query_info
(
G_FILE_INPUT_STREAM
(
mpStream
),
const_cast
<
char
*>
(
G_FILE_ATTRIBUTE_STANDARD_SIZE
)
,
NULL
,
NULL
)
:
g_file_output_stream_query_info
(
G_FILE_OUTPUT_STREAM
(
mpStream
),
const_cast
<
char
*>
(
G_FILE_ATTRIBUTE_STANDARD_SIZE
)
,
NULL
,
NULL
);
?
g_file_input_stream_query_info
(
G_FILE_INPUT_STREAM
(
mpStream
),
G_FILE_ATTRIBUTE_STANDARD_SIZE
,
NULL
,
NULL
)
:
g_file_output_stream_query_info
(
G_FILE_OUTPUT_STREAM
(
mpStream
),
G_FILE_ATTRIBUTE_STANDARD_SIZE
,
NULL
,
NULL
);
if
(
pInfo
)
{
...
...
ucb/source/ucp/webdav-neon/NeonUri.cxx
Dosyayı görüntüle @
0c141f2e
...
...
@@ -49,21 +49,21 @@ using namespace webdav_ucp;
namespace
{
const
ne_uri
g_sUriDefaultsHTTP
=
{
(
char
*
)
"http"
,
const
ne_uri
g_sUriDefaultsHTTP
=
{
const_cast
<
char
*>
(
"http"
)
,
NULL
,
NULL
,
DEFAULT_HTTP_PORT
,
NULL
,
NULL
,
NULL
};
const
ne_uri
g_sUriDefaultsHTTPS
=
{
(
char
*
)
"https"
,
const
ne_uri
g_sUriDefaultsHTTPS
=
{
const_cast
<
char
*>
(
"https"
)
,
NULL
,
NULL
,
DEFAULT_HTTPS_PORT
,
NULL
,
NULL
,
NULL
};
const
ne_uri
g_sUriDefaultsFTP
=
{
(
char
*
)
"ftp"
,
const
ne_uri
g_sUriDefaultsFTP
=
{
const_cast
<
char
*>
(
"ftp"
)
,
NULL
,
NULL
,
DEFAULT_FTP_PORT
,
...
...
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