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
23393015
Kaydet (Commit)
23393015
authored
Şub 06, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1267636 Logically dead code
Change-Id: I3bd06dee1a5536552f79d9eddf5c7059723cba2e
üst
9e90c4d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
textboxhelper.cxx
sw/source/core/doc/textboxhelper.cxx
+6
-3
No files found.
sw/source/core/doc/textboxhelper.cxx
Dosyayı görüntüle @
23393015
...
@@ -222,7 +222,7 @@ sal_Int32 SwTextBoxHelper::getCount(SdrPage* pPage, std::set<const SwFrmFmt*>& r
...
@@ -222,7 +222,7 @@ sal_Int32 SwTextBoxHelper::getCount(SdrPage* pPage, std::set<const SwFrmFmt*>& r
uno
::
Any
SwTextBoxHelper
::
getByIndex
(
SdrPage
*
pPage
,
sal_Int32
nIndex
,
std
::
set
<
const
SwFrmFmt
*>&
rTextBoxes
)
throw
(
lang
::
IndexOutOfBoundsException
)
uno
::
Any
SwTextBoxHelper
::
getByIndex
(
SdrPage
*
pPage
,
sal_Int32
nIndex
,
std
::
set
<
const
SwFrmFmt
*>&
rTextBoxes
)
throw
(
lang
::
IndexOutOfBoundsException
)
{
{
if
(
nIndex
<
0
||
nIndex
>=
getCount
(
pPage
,
rTextBoxes
)
)
if
(
nIndex
<
0
)
throw
lang
::
IndexOutOfBoundsException
();
throw
lang
::
IndexOutOfBoundsException
();
SdrObject
*
pRet
=
0
;
SdrObject
*
pRet
=
0
;
...
@@ -238,8 +238,11 @@ uno::Any SwTextBoxHelper::getByIndex(SdrPage* pPage, sal_Int32 nIndex, std::set<
...
@@ -238,8 +238,11 @@ uno::Any SwTextBoxHelper::getByIndex(SdrPage* pPage, sal_Int32 nIndex, std::set<
}
}
++
nCount
;
++
nCount
;
}
}
assert
(
pRet
);
return
pRet
?
uno
::
makeAny
(
uno
::
Reference
<
drawing
::
XShape
>
(
pRet
->
getUnoShape
(),
uno
::
UNO_QUERY
))
:
uno
::
Any
();
if
(
!
pRet
)
throw
lang
::
IndexOutOfBoundsException
();
return
uno
::
makeAny
(
uno
::
Reference
<
drawing
::
XShape
>
(
pRet
->
getUnoShape
(),
uno
::
UNO_QUERY
));
}
}
sal_Int32
SwTextBoxHelper
::
getOrdNum
(
const
SdrObject
*
pObject
,
std
::
set
<
const
SwFrmFmt
*>&
rTextBoxes
)
sal_Int32
SwTextBoxHelper
::
getOrdNum
(
const
SdrObject
*
pObject
,
std
::
set
<
const
SwFrmFmt
*>&
rTextBoxes
)
...
...
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