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
f43311df
Kaydet (Commit)
f43311df
authored
Ara 09, 2011
tarafından
Olivier Hallot
Kaydeden (comit)
Stephan Bergmann
Ara 09, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix for fdo43460, Part I, getLength to isEmpty
Part I Modules unoControl, accessibility and avmedia
üst
1d1f0498
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
17 deletions
+17
-17
framecontrol.cxx
UnoControls/source/controls/framecontrol.cxx
+1
-1
progressmonitor.cxx
UnoControls/source/controls/progressmonitor.cxx
+3
-3
accessibleiconchoicectrl.cxx
accessibility/source/extended/accessibleiconchoicectrl.cxx
+1
-1
textwindowaccessibility.cxx
accessibility/source/extended/textwindowaccessibility.cxx
+1
-1
accessiblemenuitemcomponent.cxx
...ssibility/source/standard/accessiblemenuitemcomponent.cxx
+1
-1
vclxaccessiblebox.cxx
accessibility/source/standard/vclxaccessiblebox.cxx
+1
-1
vclxaccessibletoolboxitem.cxx
accessibility/source/standard/vclxaccessibletoolboxitem.cxx
+1
-1
mediacontrol.cxx
avmedia/source/framework/mediacontrol.cxx
+4
-4
mediawindow.cxx
avmedia/source/viewer/mediawindow.cxx
+4
-4
No files found.
UnoControls/source/controls/framecontrol.cxx
Dosyayı görüntüle @
f43311df
...
@@ -203,7 +203,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo
...
@@ -203,7 +203,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo
BaseControl
::
createPeer
(
xToolkit
,
xParentPeer
);
BaseControl
::
createPeer
(
xToolkit
,
xParentPeer
);
if
(
impl_getPeerWindow
().
is
()
)
if
(
impl_getPeerWindow
().
is
()
)
{
{
if
(
m_sComponentURL
.
getLength
()
>
0
)
if
(
!
m_sComponentURL
.
isEmpty
()
)
{
{
impl_createFrame
(
getPeer
(),
m_sComponentURL
,
m_seqLoaderArguments
);
impl_createFrame
(
getPeer
(),
m_sComponentURL
,
m_seqLoaderArguments
);
}
}
...
...
UnoControls/source/controls/progressmonitor.cxx
Dosyayı görüntüle @
f43311df
...
@@ -1038,11 +1038,11 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter (
...
@@ -1038,11 +1038,11 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter (
)
{
)
{
// Check "rTopic"
// Check "rTopic"
if
(
&
rTopic
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
&
rTopic
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
rTopic
.
getLength
()
<
1
)
return
sal_False
;
// ""
if
(
rTopic
.
isEmpty
()
)
return
sal_False
;
// ""
// Check "rText"
// Check "rText"
if
(
&
rText
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
&
rText
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
rText
.
getLength
()
<
1
)
return
sal_False
;
// ""
if
(
rText
.
isEmpty
()
)
return
sal_False
;
// ""
// "bbeforeProgress" is valid in everyway!
// "bbeforeProgress" is valid in everyway!
...
@@ -1055,7 +1055,7 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic, sa
...
@@ -1055,7 +1055,7 @@ sal_Bool ProgressMonitor::impl_debug_checkParameter ( const OUString& rTopic, sa
{
{
// Check "rTopic"
// Check "rTopic"
if
(
&
rTopic
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
&
rTopic
==
NULL
)
return
sal_False
;
// NULL-pointer for reference ???!!!
if
(
rTopic
.
getLength
()
<
1
)
return
sal_False
;
// ""
if
(
rTopic
.
isEmpty
()
)
return
sal_False
;
// ""
// "bbeforeProgress" is valid in everyway!
// "bbeforeProgress" is valid in everyway!
...
...
accessibility/source/extended/accessibleiconchoicectrl.cxx
Dosyayı görüntüle @
f43311df
...
@@ -211,7 +211,7 @@ namespace accessibility
...
@@ -211,7 +211,7 @@ namespace accessibility
ensureAlive
();
ensureAlive
();
::
rtl
::
OUString
sName
=
getCtrl
()
->
GetAccessibleName
();
::
rtl
::
OUString
sName
=
getCtrl
()
->
GetAccessibleName
();
if
(
sName
.
getLength
()
==
0
)
if
(
sName
.
isEmpty
()
)
sName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IconChoiceControl"
)
);
sName
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"IconChoiceControl"
)
);
return
sName
;
return
sName
;
}
}
...
...
accessibility/source/extended/textwindowaccessibility.cxx
Dosyayı görüntüle @
f43311df
...
@@ -1798,7 +1798,7 @@ Document::changeParagraphText(::sal_uLong nNumber, ::sal_uInt16 nBegin, ::sal_uI
...
@@ -1798,7 +1798,7 @@ Document::changeParagraphText(::sal_uLong nNumber, ::sal_uInt16 nBegin, ::sal_uI
m_rView
.
DeleteSelected
();
m_rView
.
DeleteSelected
();
if
(
bPaste
)
if
(
bPaste
)
m_rView
.
Paste
();
m_rView
.
Paste
();
else
if
(
rText
.
getLength
()
!=
0
)
else
if
(
!
rText
.
isEmpty
()
)
m_rView
.
InsertText
(
rText
);
m_rView
.
InsertText
(
rText
);
}
}
...
...
accessibility/source/standard/accessiblemenuitemcomponent.cxx
Dosyayı görüntüle @
f43311df
...
@@ -208,7 +208,7 @@ void OAccessibleMenuItemComponent::SetAccessibleName( const ::rtl::OUString& sAc
...
@@ -208,7 +208,7 @@ void OAccessibleMenuItemComponent::SetAccessibleName( const ::rtl::OUString& sAc
{
{
sal_uInt16
nItemId
=
m_pParent
->
GetItemId
(
m_nItemPos
);
sal_uInt16
nItemId
=
m_pParent
->
GetItemId
(
m_nItemPos
);
sName
=
m_pParent
->
GetAccessibleName
(
nItemId
);
sName
=
m_pParent
->
GetAccessibleName
(
nItemId
);
if
(
sName
.
getLength
()
==
0
)
if
(
sName
.
isEmpty
()
)
sName
=
m_pParent
->
GetItemText
(
nItemId
);
sName
=
m_pParent
->
GetItemText
(
nItemId
);
sName
=
OutputDevice
::
GetNonMnemonicString
(
sName
);
sName
=
OutputDevice
::
GetNonMnemonicString
(
sName
);
}
}
...
...
accessibility/source/standard/vclxaccessiblebox.cxx
Dosyayı görüntüle @
f43311df
...
@@ -156,7 +156,7 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
...
@@ -156,7 +156,7 @@ void VCLXAccessibleBox::ProcessWindowEvent (const VclWindowEvent& rVclWindowEven
if
(
xText
.
is
()
)
if
(
xText
.
is
()
)
{
{
::
rtl
::
OUString
sText
=
xText
->
getSelectedText
();
::
rtl
::
OUString
sText
=
xText
->
getSelectedText
();
if
(
!
sText
.
getLength
()
)
if
(
sText
.
isEmpty
()
)
sText
=
xText
->
getText
();
sText
=
xText
->
getText
();
pList
->
UpdateSelection
(
sText
);
pList
->
UpdateSelection
(
sText
);
}
}
...
...
accessibility/source/standard/vclxaccessibletoolboxitem.cxx
Dosyayı görüntüle @
f43311df
...
@@ -607,7 +607,7 @@ awt::FontDescriptor SAL_CALL VCLXAccessibleToolBoxItem::getFontMetrics( const Re
...
@@ -607,7 +607,7 @@ awt::FontDescriptor SAL_CALL VCLXAccessibleToolBoxItem::getFontMetrics( const Re
sRet
=
m_pToolBox
->
GetHelpText
(
m_nItemId
);
sRet
=
m_pToolBox
->
GetHelpText
(
m_nItemId
);
else
else
sRet
=
m_pToolBox
->
GetQuickHelpText
(
m_nItemId
);
sRet
=
m_pToolBox
->
GetQuickHelpText
(
m_nItemId
);
if
(
!
sRet
.
getLength
()
)
if
(
sRet
.
isEmpty
()
)
// no help text set, so use item text
// no help text set, so use item text
sRet
=
m_pToolBox
->
GetItemText
(
m_nItemId
);
sRet
=
m_pToolBox
->
GetItemText
(
m_nItemId
);
}
}
...
...
avmedia/source/framework/mediacontrol.cxx
Dosyayı görüntüle @
f43311df
...
@@ -293,7 +293,7 @@ void MediaControl::setState( const MediaItem& rItem )
...
@@ -293,7 +293,7 @@ void MediaControl::setState( const MediaItem& rItem )
void
MediaControl
::
implUpdateToolboxes
()
void
MediaControl
::
implUpdateToolboxes
()
{
{
const
bool
bValidURL
=
(
maItem
.
getURL
().
getLength
()
>
0
);
const
bool
bValidURL
=
(
!
maItem
.
getURL
().
isEmpty
()
);
maPlayToolBox
.
EnableItem
(
AVMEDIA_TOOLBOXITEM_INSERT
,
bValidURL
);
maPlayToolBox
.
EnableItem
(
AVMEDIA_TOOLBOXITEM_INSERT
,
bValidURL
);
maPlayToolBox
.
EnableItem
(
AVMEDIA_TOOLBOXITEM_PLAY
,
bValidURL
);
maPlayToolBox
.
EnableItem
(
AVMEDIA_TOOLBOXITEM_PLAY
,
bValidURL
);
...
@@ -372,7 +372,7 @@ void MediaControl::implUpdateToolboxes()
...
@@ -372,7 +372,7 @@ void MediaControl::implUpdateToolboxes()
void
MediaControl
::
implUpdateTimeSlider
()
void
MediaControl
::
implUpdateTimeSlider
()
{
{
if
(
!
maItem
.
getURL
().
getLength
()
||
!
IsEnabled
()
)
if
(
maItem
.
getURL
().
isEmpty
()
||
!
IsEnabled
()
)
maTimeSlider
.
Disable
();
maTimeSlider
.
Disable
();
else
else
{
{
...
@@ -399,7 +399,7 @@ void MediaControl::implUpdateTimeSlider()
...
@@ -399,7 +399,7 @@ void MediaControl::implUpdateTimeSlider()
void
MediaControl
::
implUpdateVolumeSlider
()
void
MediaControl
::
implUpdateVolumeSlider
()
{
{
if
(
!
maItem
.
getURL
().
getLength
()
||
!
IsEnabled
()
)
if
(
maItem
.
getURL
().
isEmpty
()
||
!
IsEnabled
()
)
maVolumeSlider
.
Disable
();
maVolumeSlider
.
Disable
();
else
else
{
{
...
@@ -416,7 +416,7 @@ void MediaControl::implUpdateVolumeSlider()
...
@@ -416,7 +416,7 @@ void MediaControl::implUpdateVolumeSlider()
void
MediaControl
::
implUpdateTimeField
(
double
fCurTime
)
void
MediaControl
::
implUpdateTimeField
(
double
fCurTime
)
{
{
if
(
maItem
.
getURL
().
getLength
()
>
0
)
if
(
!
maItem
.
getURL
().
isEmpty
()
)
{
{
String
aTimeString
;
String
aTimeString
;
...
...
avmedia/source/viewer/mediawindow.cxx
Dosyayı görüntüle @
f43311df
...
@@ -274,7 +274,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
...
@@ -274,7 +274,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
{
{
for
(
sal_Int32
nIndex
=
0
;
nIndex
>=
0
;
)
for
(
sal_Int32
nIndex
=
0
;
nIndex
>=
0
;
)
{
{
if
(
aAllTypes
.
getLength
()
)
if
(
!
aAllTypes
.
isEmpty
()
)
aAllTypes
+=
aSeparator
;
aAllTypes
+=
aSeparator
;
(
aAllTypes
+=
aWildcard
)
+=
aFilters
[
i
].
second
.
getToken
(
0
,
';'
,
nIndex
);
(
aAllTypes
+=
aWildcard
)
+=
aFilters
[
i
].
second
.
getToken
(
0
,
';'
,
nIndex
);
...
@@ -290,7 +290,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
...
@@ -290,7 +290,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
for
(
sal_Int32
nIndex
=
0
;
nIndex
>=
0
;
)
for
(
sal_Int32
nIndex
=
0
;
nIndex
>=
0
;
)
{
{
if
(
aTypes
.
getLength
()
)
if
(
!
aTypes
.
isEmpty
()
)
aTypes
+=
aSeparator
;
aTypes
+=
aSeparator
;
(
aTypes
+=
aWildcard
)
+=
aFilters
[
i
].
second
.
getToken
(
0
,
';'
,
nIndex
);
(
aTypes
+=
aWildcard
)
+=
aFilters
[
i
].
second
.
getToken
(
0
,
';'
,
nIndex
);
...
@@ -334,10 +334,10 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
...
@@ -334,10 +334,10 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
}
}
}
}
}
}
else
if
(
rURL
.
getLength
()
)
else
if
(
!
rURL
.
isEmpty
()
)
rURL
=
::
rtl
::
OUString
();
rURL
=
::
rtl
::
OUString
();
return
(
rURL
.
getLength
()
>
0
);
return
(
!
rURL
.
isEmpty
()
);
}
}
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
...
...
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