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
64f6190d
Kaydet (Commit)
64f6190d
authored
Mar 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I0b1cbc96f85b6345b8abc843e5d609f9cc8a24b9
üst
6b97231b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
htmlex.cxx
sd/source/filter/html/htmlex.cxx
+1
-1
sdxfer.cxx
sd/source/ui/app/sdxfer.cxx
+1
-1
sdtreelb.cxx
sd/source/ui/dlg/sdtreelb.cxx
+3
-3
MasterPagesSelector.cxx
sd/source/ui/sidebar/MasterPagesSelector.cxx
+1
-1
SlsClipboard.cxx
sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+2
-2
facreg.cxx
sd/source/ui/unoidl/facreg.cxx
+1
-1
viewshel.cxx
sd/source/ui/view/viewshel.cxx
+1
-1
No files found.
sd/source/filter/html/htmlex.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -1081,7 +1081,7 @@ OUString HtmlExport::DocumentMetadata() const
...
@@ -1081,7 +1081,7 @@ OUString HtmlExport::DocumentMetadata() const
" "
,
RTL_TEXTENCODING_UTF8
,
" "
,
RTL_TEXTENCODING_UTF8
,
&
aNonConvertableCharacters
);
&
aNonConvertableCharacters
);
OString
aData
(
reinterpret
_cast
<
const
char
*>
(
aStream
.
GetData
()),
aStream
.
GetSize
());
OString
aData
(
static
_cast
<
const
char
*>
(
aStream
.
GetData
()),
aStream
.
GetSize
());
return
OStringToOUString
(
aData
,
RTL_TEXTENCODING_UTF8
);
return
OStringToOUString
(
aData
,
RTL_TEXTENCODING_UTF8
);
}
}
...
...
sd/source/ui/app/sdxfer.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -827,7 +827,7 @@ bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFla
...
@@ -827,7 +827,7 @@ bool SdTransferable::SetTableRTF( SdDrawDocument* pModel, const DataFlavor& rFla
{
{
SvMemoryStream
aMemStm
(
65535
,
65535
);
SvMemoryStream
aMemStm
(
65535
,
65535
);
sdr
::
table
::
SdrTableObj
::
ExportAsRTF
(
aMemStm
,
*
pTableObj
);
sdr
::
table
::
SdrTableObj
::
ExportAsRTF
(
aMemStm
,
*
pTableObj
);
return
SetAny
(
Any
(
Sequence
<
sal_Int8
>
(
reinterpret
_cast
<
const
sal_Int8
*
>
(
aMemStm
.
GetData
()
),
aMemStm
.
Seek
(
STREAM_SEEK_TO_END
)
)
),
rFlavor
);
return
SetAny
(
Any
(
Sequence
<
sal_Int8
>
(
static
_cast
<
const
sal_Int8
*
>
(
aMemStm
.
GetData
()
),
aMemStm
.
Seek
(
STREAM_SEEK_TO_END
)
)
),
rFlavor
);
}
}
}
}
}
}
...
...
sd/source/ui/dlg/sdtreelb.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -1226,7 +1226,7 @@ void SdPageObjsTLB::DoDrag()
...
@@ -1226,7 +1226,7 @@ void SdPageObjsTLB::DoDrag()
SdrObject
*
pObject
=
NULL
;
SdrObject
*
pObject
=
NULL
;
void
*
pUserData
=
GetCurEntry
()
->
GetUserData
();
void
*
pUserData
=
GetCurEntry
()
->
GetUserData
();
if
(
pUserData
!=
NULL
&&
pUserData
!=
reinterpret_cast
<
void
*>
(
1
))
if
(
pUserData
!=
NULL
&&
pUserData
!=
reinterpret_cast
<
void
*>
(
1
))
pObject
=
reinterpret
_cast
<
SdrObject
*>
(
pUserData
);
pObject
=
static
_cast
<
SdrObject
*>
(
pUserData
);
if
(
pObject
!=
NULL
)
if
(
pObject
!=
NULL
)
{
{
// For shapes without a user supplied name (the automatically
// For shapes without a user supplied name (the automatically
...
@@ -1413,8 +1413,8 @@ TriState SdPageObjsTLB::NotifyMoving(
...
@@ -1413,8 +1413,8 @@ TriState SdPageObjsTLB::NotifyMoving(
while
(
GetParent
(
pDestination
)
!=
NULL
&&
GetParent
(
GetParent
(
pDestination
))
!=
NULL
)
while
(
GetParent
(
pDestination
)
!=
NULL
&&
GetParent
(
GetParent
(
pDestination
))
!=
NULL
)
pDestination
=
GetParent
(
pDestination
);
pDestination
=
GetParent
(
pDestination
);
SdrObject
*
pTargetObject
=
reinterpret
_cast
<
SdrObject
*>
(
pDestination
->
GetUserData
());
SdrObject
*
pTargetObject
=
static
_cast
<
SdrObject
*>
(
pDestination
->
GetUserData
());
SdrObject
*
pSourceObject
=
reinterpret
_cast
<
SdrObject
*>
(
pEntry
->
GetUserData
());
SdrObject
*
pSourceObject
=
static
_cast
<
SdrObject
*>
(
pEntry
->
GetUserData
());
if
(
pSourceObject
==
reinterpret_cast
<
SdrObject
*>
(
1
))
if
(
pSourceObject
==
reinterpret_cast
<
SdrObject
*>
(
1
))
pSourceObject
=
NULL
;
pSourceObject
=
NULL
;
...
...
sd/source/ui/sidebar/MasterPagesSelector.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -465,7 +465,7 @@ MasterPagesSelector::UserData* MasterPagesSelector::GetUserData (int nIndex) con
...
@@ -465,7 +465,7 @@ MasterPagesSelector::UserData* MasterPagesSelector::GetUserData (int nIndex) con
const
::
osl
::
MutexGuard
aGuard
(
maMutex
);
const
::
osl
::
MutexGuard
aGuard
(
maMutex
);
if
(
nIndex
>
0
&&
static_cast
<
unsigned
int
>
(
nIndex
)
<=
PreviewValueSet
::
GetItemCount
())
if
(
nIndex
>
0
&&
static_cast
<
unsigned
int
>
(
nIndex
)
<=
PreviewValueSet
::
GetItemCount
())
return
reinterpret
_cast
<
UserData
*>
(
PreviewValueSet
::
GetItemData
((
sal_uInt16
)
nIndex
));
return
static
_cast
<
UserData
*>
(
PreviewValueSet
::
GetItemData
((
sal_uInt16
)
nIndex
));
else
else
return
NULL
;
return
NULL
;
}
}
...
...
sd/source/ui/slidesorter/controller/SlsClipboard.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -907,7 +907,7 @@ sal_Int8 Clipboard::ExecuteOrAcceptShapeDrop (
...
@@ -907,7 +907,7 @@ sal_Int8 Clipboard::ExecuteOrAcceptShapeDrop (
{
{
case
DC_ACCEPT
:
case
DC_ACCEPT
:
nResult
=
pDrawViewShell
->
AcceptDrop
(
nResult
=
pDrawViewShell
->
AcceptDrop
(
*
reinterpret
_cast
<
const
AcceptDropEvent
*>
(
pDropEvent
),
*
static
_cast
<
const
AcceptDropEvent
*>
(
pDropEvent
),
rTargetHelper
,
rTargetHelper
,
pTargetWindow
,
pTargetWindow
,
nPage
,
nPage
,
...
@@ -916,7 +916,7 @@ sal_Int8 Clipboard::ExecuteOrAcceptShapeDrop (
...
@@ -916,7 +916,7 @@ sal_Int8 Clipboard::ExecuteOrAcceptShapeDrop (
case
DC_EXECUTE
:
case
DC_EXECUTE
:
nResult
=
pDrawViewShell
->
ExecuteDrop
(
nResult
=
pDrawViewShell
->
ExecuteDrop
(
*
reinterpret
_cast
<
const
ExecuteDropEvent
*>
(
pDropEvent
),
*
static
_cast
<
const
ExecuteDropEvent
*>
(
pDropEvent
),
rTargetHelper
,
rTargetHelper
,
pTargetWindow
,
pTargetWindow
,
nPage
,
nPage
,
...
...
sd/source/ui/unoidl/facreg.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -71,7 +71,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sd_component_getFactory(
...
@@ -71,7 +71,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sd_component_getFactory(
if
(
pServiceManager
)
if
(
pServiceManager
)
{
{
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMSF
(
reinterpret
_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
)
);
uno
::
Reference
<
lang
::
XMultiServiceFactory
>
xMSF
(
static
_cast
<
lang
::
XMultiServiceFactory
*
>
(
pServiceManager
)
);
uno
::
Reference
<
lang
::
XSingleServiceFactory
>
xFactory
;
uno
::
Reference
<
lang
::
XSingleServiceFactory
>
xFactory
;
uno
::
Reference
<
lang
::
XSingleComponentFactory
>
xComponentFactory
;
uno
::
Reference
<
lang
::
XSingleComponentFactory
>
xComponentFactory
;
...
...
sd/source/ui/view/viewshel.cxx
Dosyayı görüntüle @
64f6190d
...
@@ -667,7 +667,7 @@ bool ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
...
@@ -667,7 +667,7 @@ bool ViewShell::Notify(NotifyEvent& rNEvt, ::sd::Window* pWin)
if
(
rNEvt
.
GetType
()
==
MouseNotifyEvent
::
COMMAND
)
if
(
rNEvt
.
GetType
()
==
MouseNotifyEvent
::
COMMAND
)
{
{
// note: dynamic_cast is not possible as GetData() returns a void*
// note: dynamic_cast is not possible as GetData() returns a void*
CommandEvent
*
pCmdEvent
=
reinterpret
_cast
<
CommandEvent
*
>
(
rNEvt
.
GetData
());
CommandEvent
*
pCmdEvent
=
static
_cast
<
CommandEvent
*
>
(
rNEvt
.
GetData
());
nRet
=
HandleScrollCommand
(
*
pCmdEvent
,
pWin
);
nRet
=
HandleScrollCommand
(
*
pCmdEvent
,
pWin
);
}
}
return
nRet
;
return
nRet
;
...
...
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