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
ea1c1ad8
Kaydet (Commit)
ea1c1ad8
authored
Kas 22, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcheck: C-style pointer casting
üst
48796870
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
14 deletions
+13
-14
basicbox.cxx
basctl/source/basicide/basicbox.cxx
+2
-2
baside2.hxx
basctl/source/basicide/baside2.hxx
+1
-1
baside2b.cxx
basctl/source/basicide/baside2b.cxx
+7
-8
basobj2.cxx
basctl/source/basicide/basobj2.cxx
+2
-2
moduldl2.cxx
basctl/source/basicide/moduldl2.cxx
+1
-1
No files found.
basctl/source/basicide/basicbox.cxx
Dosyayı görüntüle @
ea1c1ad8
...
@@ -328,7 +328,7 @@ void BasicLibBox::Select()
...
@@ -328,7 +328,7 @@ void BasicLibBox::Select()
void
BasicLibBox
::
NotifyIDE
()
void
BasicLibBox
::
NotifyIDE
()
{
{
sal_uInt16
nSelPos
=
GetSelectEntryPos
();
sal_uInt16
nSelPos
=
GetSelectEntryPos
();
BasicLibEntry
*
pEntry
=
(
BasicLibEntry
*
)
GetEntryData
(
nSelPos
);
BasicLibEntry
*
pEntry
=
static_cast
<
BasicLibEntry
*>
(
GetEntryData
(
nSelPos
)
);
if
(
pEntry
)
if
(
pEntry
)
{
{
ScriptDocument
aDocument
(
pEntry
->
GetDocument
()
);
ScriptDocument
aDocument
(
pEntry
->
GetDocument
()
);
...
@@ -352,7 +352,7 @@ void BasicLibBox::ClearBox()
...
@@ -352,7 +352,7 @@ void BasicLibBox::ClearBox()
sal_uInt16
nCount
=
GetEntryCount
();
sal_uInt16
nCount
=
GetEntryCount
();
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
{
{
BasicLibEntry
*
pEntry
=
(
BasicLibEntry
*
)
GetEntryData
(
i
);
BasicLibEntry
*
pEntry
=
static_cast
<
BasicLibEntry
*>
(
GetEntryData
(
i
)
);
delete
pEntry
;
delete
pEntry
;
}
}
ListBox
::
Clear
();
ListBox
::
Clear
();
...
...
basctl/source/basicide/baside2.hxx
Dosyayı görüntüle @
ea1c1ad8
...
@@ -148,7 +148,7 @@ public:
...
@@ -148,7 +148,7 @@ public:
EditorWindow
(
Window
*
pParent
);
EditorWindow
(
Window
*
pParent
);
~
EditorWindow
();
~
EditorWindow
();
ExtTextEngine
*
GetEditEngine
()
const
{
return
(
ExtTextEngine
*
)
pEditEngine
;
}
ExtTextEngine
*
GetEditEngine
()
const
{
return
pEditEngine
;
}
ExtTextView
*
GetEditView
()
const
{
return
pEditView
;
}
ExtTextView
*
GetEditView
()
const
{
return
pEditView
;
}
ProgressInfo
*
GetProgress
()
const
{
return
pProgress
;
}
ProgressInfo
*
GetProgress
()
const
{
return
pProgress
;
}
...
...
basctl/source/basicide/baside2b.cxx
Dosyayı görüntüle @
ea1c1ad8
...
@@ -769,7 +769,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
...
@@ -769,7 +769,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine )
for
(
size_t
i
=
0
;
i
<
aPortions
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
aPortions
.
size
();
i
++
)
{
{
HighlightPortion
&
r
=
aPortions
[
i
];
HighlightPortion
&
r
=
aPortions
[
i
];
const
Color
&
rColor
=
((
ModulWindowLayout
*
)
pModulWindow
->
GetLayoutWindow
())
->
getSyntaxColor
(
r
.
tokenType
);
const
Color
&
rColor
=
dynamic_cast
<
ModulWindowLayout
*>
(
pModulWindow
->
GetLayoutWindow
())
->
getSyntaxColor
(
r
.
tokenType
);
pEditEngine
->
SetAttrib
(
TextAttribFontColor
(
rColor
),
nLine
,
r
.
nBegin
,
r
.
nEnd
,
sal_True
);
pEditEngine
->
SetAttrib
(
TextAttribFontColor
(
rColor
),
nLine
,
r
.
nBegin
,
r
.
nEnd
,
sal_True
);
}
}
...
@@ -960,10 +960,10 @@ void BreakPointWindow::Paint( const Rectangle& )
...
@@ -960,10 +960,10 @@ void BreakPointWindow::Paint( const Rectangle& )
Size
aOutSz
(
GetOutputSize
()
);
Size
aOutSz
(
GetOutputSize
()
);
long
nLineHeight
=
GetTextHeight
();
long
nLineHeight
=
GetTextHeight
();
Image
aBrk1
(((
ModulWindowLayout
*
)
pModulWindow
->
GetLayoutWindow
())
->
ModulWindowLayout
*
pModulWindowLayout
=
dynamic_cast
<
ModulWindowLayout
*>
(
pModulWindow
->
GetLayoutWindow
());
getImage
(
IMGID_BRKENABLED
));
Image
aBrk
0
(((
ModulWindowLayout
*
)
pModulWindow
->
GetLayoutWindow
())
->
Image
aBrk
1
(
pModulWindowLayout
->
getImage
(
IMGID_BRKENABLED
));
getImage
(
IMGID_BRKDISABLED
));
Image
aBrk0
(
pModulWindowLayout
->
getImage
(
IMGID_BRKDISABLED
));
Size
aBmpSz
(
aBrk1
.
GetSizePixel
()
);
Size
aBmpSz
(
aBrk1
.
GetSizePixel
()
);
aBmpSz
=
PixelToLogic
(
aBmpSz
);
aBmpSz
=
PixelToLogic
(
aBmpSz
);
Point
aBmpOff
(
0
,
0
);
Point
aBmpOff
(
0
,
0
);
...
@@ -1009,9 +1009,8 @@ void BreakPointWindow::ShowMarker( sal_Bool bShow )
...
@@ -1009,9 +1009,8 @@ void BreakPointWindow::ShowMarker( sal_Bool bShow )
Size
aOutSz
(
GetOutputSize
()
);
Size
aOutSz
(
GetOutputSize
()
);
long
nLineHeight
=
GetTextHeight
();
long
nLineHeight
=
GetTextHeight
();
Image
aMarker
(((
ModulWindowLayout
*
)
pModulWindow
->
GetLayoutWindow
())
->
ModulWindowLayout
*
pModulWindowLayout
=
dynamic_cast
<
ModulWindowLayout
*>
(
pModulWindow
->
GetLayoutWindow
());
getImage
(
bErrorMarker
Image
aMarker
(
pModulWindowLayout
->
getImage
(
bErrorMarker
?
IMGID_ERRORMARKER
:
IMGID_STEPMARKER
));
?
IMGID_ERRORMARKER
:
IMGID_STEPMARKER
));
Size
aMarkerSz
(
aMarker
.
GetSizePixel
()
);
Size
aMarkerSz
(
aMarker
.
GetSizePixel
()
);
aMarkerSz
=
PixelToLogic
(
aMarkerSz
);
aMarkerSz
=
PixelToLogic
(
aMarkerSz
);
...
...
basctl/source/basicide/basobj2.cxx
Dosyayı görüntüle @
ea1c1ad8
...
@@ -205,7 +205,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
...
@@ -205,7 +205,7 @@ bool RenameModule( Window* pErrorParent, const ScriptDocument& rDocument, const
pWin
->
SetName
(
rNewName
);
pWin
->
SetName
(
rNewName
);
// set new module in module window
// set new module in module window
ModulWindow
*
pModWin
=
(
ModulWindow
*
)
pWin
;
ModulWindow
*
pModWin
=
dynamic_cast
<
ModulWindow
*>
(
pWin
)
;
pModWin
->
SetSbModule
(
(
SbModule
*
)
pModWin
->
GetBasic
()
->
FindModule
(
rNewName
)
);
pModWin
->
SetSbModule
(
(
SbModule
*
)
pModWin
->
GetBasic
()
->
FindModule
(
rNewName
)
);
// update tabwriter
// update tabwriter
...
@@ -308,7 +308,7 @@ namespace
...
@@ -308,7 +308,7 @@ namespace
SbModule
*
pModule
=
pMethod
->
GetModule
();
SbModule
*
pModule
=
pMethod
->
GetModule
();
ENSURE_OR_BREAK
(
pModule
,
"BasicIDE::ChooseMacro: No Module found!"
);
ENSURE_OR_BREAK
(
pModule
,
"BasicIDE::ChooseMacro: No Module found!"
);
StarBASIC
*
pBasic
=
(
StarBASIC
*
)
pModule
->
GetParent
(
);
StarBASIC
*
pBasic
=
dynamic_cast
<
StarBASIC
*>
(
pModule
->
GetParent
()
);
ENSURE_OR_BREAK
(
pBasic
,
"BasicIDE::ChooseMacro: No Basic found!"
);
ENSURE_OR_BREAK
(
pBasic
,
"BasicIDE::ChooseMacro: No Basic found!"
);
BasicManager
*
pBasMgr
=
BasicIDE
::
FindBasicManager
(
pBasic
);
BasicManager
*
pBasMgr
=
BasicIDE
::
FindBasicManager
(
pBasic
);
...
...
basctl/source/basicide/moduldl2.cxx
Dosyayı görüntüle @
ea1c1ad8
...
@@ -182,7 +182,7 @@ BasicCheckBox::~BasicCheckBox()
...
@@ -182,7 +182,7 @@ BasicCheckBox::~BasicCheckBox()
SvLBoxEntry
*
pEntry
=
First
();
SvLBoxEntry
*
pEntry
=
First
();
while
(
pEntry
)
while
(
pEntry
)
{
{
delete
(
BasicLibUserData
*
)
pEntry
->
GetUserData
(
);
delete
static_cast
<
BasicLibUserData
*>
(
pEntry
->
GetUserData
()
);
pEntry
=
Next
(
pEntry
);
pEntry
=
Next
(
pEntry
);
}
}
}
}
...
...
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