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
5d950b3a
Kaydet (Commit)
5d950b3a
authored
Mar 28, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up C-style casts from pointers to void
Change-Id: Ide77480339e35a886f0d33c2a194244064c02488
üst
89d2e21a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
windowcommanddispatch.cxx
framework/source/dispatch/windowcommanddispatch.cxx
+2
-2
imagewrapper.cxx
framework/source/fwe/classes/imagewrapper.cxx
+3
-3
networkdomain.cxx
framework/source/fwi/helper/networkdomain.cxx
+1
-1
constitemcontainer.cxx
framework/source/fwi/uielement/constitemcontainer.cxx
+5
-5
dispatchrecorder.cxx
framework/source/recording/dispatchrecorder.cxx
+4
-4
addonstoolbarmanager.cxx
framework/source/uielement/addonstoolbarmanager.cxx
+2
-2
No files found.
framework/source/dispatch/windowcommanddispatch.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -97,7 +97,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam)
...
@@ -97,7 +97,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam)
if
(
!
pParam
)
if
(
!
pParam
)
return
0L
;
return
0L
;
const
VclWindowEvent
*
pEvent
=
(
VclWindowEvent
*
)
pParam
;
const
VclWindowEvent
*
pEvent
=
static_cast
<
VclWindowEvent
*>
(
pParam
)
;
if
(
pEvent
->
GetId
()
==
VCLEVENT_OBJECT_DYING
)
if
(
pEvent
->
GetId
()
==
VCLEVENT_OBJECT_DYING
)
{
{
impl_stopListening
();
impl_stopListening
();
...
@@ -106,7 +106,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam)
...
@@ -106,7 +106,7 @@ IMPL_LINK(WindowCommandDispatch, impl_notifyCommand, void*, pParam)
if
(
pEvent
->
GetId
()
!=
VCLEVENT_WINDOW_COMMAND
)
if
(
pEvent
->
GetId
()
!=
VCLEVENT_WINDOW_COMMAND
)
return
0L
;
return
0L
;
const
CommandEvent
*
pCommand
=
(
CommandEvent
*
)
pEvent
->
GetData
(
);
const
CommandEvent
*
pCommand
=
static_cast
<
CommandEvent
*>
(
pEvent
->
GetData
()
);
if
(
pCommand
->
GetCommand
()
!=
COMMAND_SHOWDIALOG
)
if
(
pCommand
->
GetCommand
()
!=
COMMAND_SHOWDIALOG
)
return
0L
;
return
0L
;
...
...
framework/source/fwe/classes/imagewrapper.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -69,7 +69,7 @@ Sequence< sal_Int8 > SAL_CALL ImageWrapper::getDIB() throw ( RuntimeException, s
...
@@ -69,7 +69,7 @@ Sequence< sal_Int8 > SAL_CALL ImageWrapper::getDIB() throw ( RuntimeException, s
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
WriteDIB
(
m_aImage
.
GetBitmapEx
().
GetBitmap
(),
aMem
,
false
,
true
);
WriteDIB
(
m_aImage
.
GetBitmapEx
().
GetBitmap
(),
aMem
,
false
,
true
);
return
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
Sequence
<
sal_Int8
>
SAL_CALL
ImageWrapper
::
getMaskDIB
()
throw
(
RuntimeException
,
std
::
exception
)
Sequence
<
sal_Int8
>
SAL_CALL
ImageWrapper
::
getMaskDIB
()
throw
(
RuntimeException
,
std
::
exception
)
...
@@ -81,13 +81,13 @@ Sequence< sal_Int8 > SAL_CALL ImageWrapper::getMaskDIB() throw ( RuntimeExceptio
...
@@ -81,13 +81,13 @@ Sequence< sal_Int8 > SAL_CALL ImageWrapper::getMaskDIB() throw ( RuntimeExceptio
{
{
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
WriteDIB
(
aBmpEx
.
GetAlpha
().
GetBitmap
(),
aMem
,
false
,
true
);
WriteDIB
(
aBmpEx
.
GetAlpha
().
GetBitmap
(),
aMem
,
false
,
true
);
return
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
else
if
(
aBmpEx
.
IsTransparent
()
)
else
if
(
aBmpEx
.
IsTransparent
()
)
{
{
SvMemoryStream
aMem
;
SvMemoryStream
aMem
;
WriteDIB
(
aBmpEx
.
GetMask
(),
aMem
,
false
,
true
);
WriteDIB
(
aBmpEx
.
GetMask
(),
aMem
,
false
,
true
);
return
Sequence
<
sal_Int8
>
(
(
sal_Int8
*
)
aMem
.
GetData
(
),
aMem
.
Tell
()
);
return
Sequence
<
sal_Int8
>
(
static_cast
<
sal_Int8
const
*>
(
aMem
.
GetData
()
),
aMem
.
Tell
()
);
}
}
return
Sequence
<
sal_Int8
>
();
return
Sequence
<
sal_Int8
>
();
...
...
framework/source/fwi/helper/networkdomain.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -139,7 +139,7 @@ static rtl_uString *getDomainName()
...
@@ -139,7 +139,7 @@ static rtl_uString *getDomainName()
do
do
{
{
nBufSize
+=
256
;
/* Increase buffer size by steps of 256 bytes */
nBufSize
+=
256
;
/* Increase buffer size by steps of 256 bytes */
pBuffer
=
(
char
*
)
alloca
(
nBufSize
);
pBuffer
=
static_cast
<
char
*>
(
alloca
(
nBufSize
)
);
result
=
getdomainname
(
pBuffer
,
nBufSize
);
result
=
getdomainname
(
pBuffer
,
nBufSize
);
/* If buffersize in not large enough -1 is returned and errno
/* If buffersize in not large enough -1 is returned and errno
is set to EINVAL. This only applies to libc. With glibc the name
is set to EINVAL. This only applies to libc. With glibc the name
...
...
framework/source/fwi/uielement/constitemcontainer.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -48,7 +48,7 @@ extern "C"
...
@@ -48,7 +48,7 @@ extern "C"
{
{
static
int
SAL_CALL
compare_OUString_Property_Impl
(
const
void
*
arg1
,
const
void
*
arg2
)
static
int
SAL_CALL
compare_OUString_Property_Impl
(
const
void
*
arg1
,
const
void
*
arg2
)
{
{
return
((
OUString
*
)
arg1
)
->
compareTo
(
((
Property
*
)
arg2
)
->
Name
);
return
static_cast
<
OUString
const
*>
(
arg1
)
->
compareTo
(
static_cast
<
Property
const
*>
(
arg2
)
->
Name
);
}
}
}
}
...
@@ -89,9 +89,9 @@ Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::co
...
@@ -89,9 +89,9 @@ Sequence< Property > OPropertySetHelperInfo_Impl::getProperties(void) throw(::co
Property
OPropertySetHelperInfo_Impl
::
getPropertyByName
(
const
OUString
&
PropertyName
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
Property
OPropertySetHelperInfo_Impl
::
getPropertyByName
(
const
OUString
&
PropertyName
)
throw
(
::
com
::
sun
::
star
::
beans
::
UnknownPropertyException
,
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
Property
*
pR
;
Property
*
pR
;
pR
=
(
Property
*
)
bsearch
(
&
PropertyName
,
aInfos
.
getConstArray
(),
aInfos
.
getLength
(),
pR
=
static_cast
<
Property
*>
(
bsearch
(
&
PropertyName
,
aInfos
.
getConstArray
(),
aInfos
.
getLength
(),
sizeof
(
Property
),
sizeof
(
Property
),
compare_OUString_Property_Impl
);
compare_OUString_Property_Impl
)
)
;
if
(
!
pR
)
{
if
(
!
pR
)
{
throw
UnknownPropertyException
();
throw
UnknownPropertyException
();
}
}
...
@@ -105,9 +105,9 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper
...
@@ -105,9 +105,9 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper
sal_Bool
OPropertySetHelperInfo_Impl
::
hasPropertyByName
(
const
OUString
&
PropertyName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
sal_Bool
OPropertySetHelperInfo_Impl
::
hasPropertyByName
(
const
OUString
&
PropertyName
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
Property
*
pR
;
Property
*
pR
;
pR
=
(
Property
*
)
bsearch
(
&
PropertyName
,
aInfos
.
getConstArray
(),
aInfos
.
getLength
(),
pR
=
static_cast
<
Property
*>
(
bsearch
(
&
PropertyName
,
aInfos
.
getConstArray
(),
aInfos
.
getLength
(),
sizeof
(
Property
),
sizeof
(
Property
),
compare_OUString_Property_Impl
);
compare_OUString_Property_Impl
)
)
;
return
pR
!=
NULL
;
return
pR
!=
NULL
;
}
}
...
...
framework/source/recording/dispatchrecorder.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -58,7 +58,7 @@ void flatten_struct_members(
...
@@ -58,7 +58,7 @@ void flatten_struct_members(
for
(
sal_Int32
nPos
=
0
;
nPos
<
pTD
->
nMembers
;
++
nPos
)
for
(
sal_Int32
nPos
=
0
;
nPos
<
pTD
->
nMembers
;
++
nPos
)
{
{
vec
->
push_back
(
vec
->
push_back
(
Any
(
(
char
const
*
)
data
+
pTD
->
pMemberOffsets
[
nPos
],
pTD
->
ppTypeRefs
[
nPos
]
)
);
Any
(
static_cast
<
char
const
*>
(
data
)
+
pTD
->
pMemberOffsets
[
nPos
],
pTD
->
ppTypeRefs
[
nPos
]
)
);
}
}
}
}
...
@@ -254,7 +254,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, OUStringBu
...
@@ -254,7 +254,7 @@ void SAL_CALL DispatchRecorder::AppendToBuffer( css::uno::Any aValue, OUStringBu
else
if
(
aValue
.
getValueType
()
==
getCppuCharType
())
else
if
(
aValue
.
getValueType
()
==
getCppuCharType
())
{
{
// character variables are recorded as strings, back conversion must be handled in client code
// character variables are recorded as strings, back conversion must be handled in client code
sal_Unicode
nVal
=
*
((
sal_Unicode
*
)
aValue
.
getValue
());
sal_Unicode
nVal
=
*
static_cast
<
sal_Unicode
const
*>
(
aValue
.
getValue
());
aArgumentBuffer
.
appendAscii
(
"
\"
"
);
aArgumentBuffer
.
appendAscii
(
"
\"
"
);
if
(
(
sal_Unicode
(
nVal
)
==
'\"'
)
)
if
(
(
sal_Unicode
(
nVal
)
==
'\"'
)
)
// encode \" to \"\"
// encode \" to \"\"
...
@@ -416,9 +416,9 @@ void SAL_CALL DispatchRecorder::replaceByIndex(sal_Int32 idx, const com::sun::st
...
@@ -416,9 +416,9 @@ void SAL_CALL DispatchRecorder::replaceByIndex(sal_Int32 idx, const com::sun::st
}
}
com
::
sun
::
star
::
frame
::
DispatchStatement
*
pStatement
;
com
::
sun
::
star
::
frame
::
DispatchStatement
const
*
pStatement
;
pStatement
=
(
com
::
sun
::
star
::
frame
::
DispatchStatement
*
)
element
.
getValue
(
);
pStatement
=
static_cast
<
com
::
sun
::
star
::
frame
::
DispatchStatement
const
*>
(
element
.
getValue
()
);
com
::
sun
::
star
::
frame
::
DispatchStatement
aStatement
(
com
::
sun
::
star
::
frame
::
DispatchStatement
aStatement
(
pStatement
->
aCommand
,
pStatement
->
aCommand
,
...
...
framework/source/uielement/addonstoolbarmanager.cxx
Dosyayı görüntüle @
5d950b3a
...
@@ -149,7 +149,7 @@ void SAL_CALL AddonsToolBarManager::dispose() throw( RuntimeException, std::exce
...
@@ -149,7 +149,7 @@ void SAL_CALL AddonsToolBarManager::dispose() throw( RuntimeException, std::exce
if
(
nId
>
0
)
if
(
nId
>
0
)
{
{
AddonsParams
*
pRuntimeItemData
=
(
AddonsParams
*
)
m_pToolBar
->
GetItemData
(
nId
);
AddonsParams
*
pRuntimeItemData
=
static_cast
<
AddonsParams
*>
(
m_pToolBar
->
GetItemData
(
nId
)
);
if
(
pRuntimeItemData
)
if
(
pRuntimeItemData
)
delete
pRuntimeItemData
;
delete
pRuntimeItemData
;
m_pToolBar
->
SetItemData
(
nId
,
NULL
);
m_pToolBar
->
SetItemData
(
nId
,
NULL
);
...
@@ -181,7 +181,7 @@ void AddonsToolBarManager::RefreshImages()
...
@@ -181,7 +181,7 @@ void AddonsToolBarManager::RefreshImages()
{
{
OUString
aCommandURL
=
m_pToolBar
->
GetItemCommand
(
nId
);
OUString
aCommandURL
=
m_pToolBar
->
GetItemCommand
(
nId
);
OUString
aImageId
;
OUString
aImageId
;
AddonsParams
*
pRuntimeItemData
=
(
AddonsParams
*
)
m_pToolBar
->
GetItemData
(
nId
);
AddonsParams
*
pRuntimeItemData
=
static_cast
<
AddonsParams
*>
(
m_pToolBar
->
GetItemData
(
nId
)
);
if
(
pRuntimeItemData
)
if
(
pRuntimeItemData
)
aImageId
=
pRuntimeItemData
->
aImageId
;
aImageId
=
pRuntimeItemData
->
aImageId
;
...
...
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