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
c3e8faa1
Kaydet (Commit)
c3e8faa1
authored
Agu 07, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1228877 Structurally dead code
Change-Id: If3a3de8bae4c2d1b8e39d3255cd8ee7e985b4404
üst
93a37a64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
textaction.cxx
cppcanvas/source/mtfrenderer/textaction.cxx
+11
-11
No files found.
cppcanvas/source/mtfrenderer/textaction.cxx
Dosyayı görüntüle @
c3e8faa1
...
@@ -2144,6 +2144,8 @@ namespace cppcanvas
...
@@ -2144,6 +2144,8 @@ namespace cppcanvas
const
::
Color
aEmptyColor
(
COL_AUTO
);
const
::
Color
aEmptyColor
(
COL_AUTO
);
ActionSharedPtr
ret
;
// no DX array, and no need to subset - no need to store
// no DX array, and no need to subset - no need to store
// DX array, then.
// DX array, then.
if
(
!
pDXArray
&&
!
bSubsettable
)
if
(
!
pDXArray
&&
!
bSubsettable
)
...
@@ -2158,7 +2160,7 @@ namespace cppcanvas
...
@@ -2158,7 +2160,7 @@ namespace cppcanvas
// nope
// nope
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
{
{
ret
urn
ActionSharedPtr
(
new
TextAction
(
ret
=
ActionSharedPtr
(
new
TextAction
(
aStartPoint
,
aStartPoint
,
rText
,
rText
,
nStartPos
,
nStartPos
,
...
@@ -2169,7 +2171,7 @@ namespace cppcanvas
...
@@ -2169,7 +2171,7 @@ namespace cppcanvas
}
}
else
else
{
{
ret
urn
ActionSharedPtr
(
new
TextAction
(
ret
=
ActionSharedPtr
(
new
TextAction
(
aStartPoint
,
aStartPoint
,
rText
,
rText
,
nStartPos
,
nStartPos
,
...
@@ -2182,7 +2184,7 @@ namespace cppcanvas
...
@@ -2182,7 +2184,7 @@ namespace cppcanvas
{
{
// at least one of the effects requested
// at least one of the effects requested
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
ret
urn
ActionSharedPtr
(
new
EffectTextAction
(
ret
=
ActionSharedPtr
(
new
EffectTextAction
(
aStartPoint
,
aStartPoint
,
aReliefOffset
,
aReliefOffset
,
rReliefColor
,
rReliefColor
,
...
@@ -2196,7 +2198,7 @@ namespace cppcanvas
...
@@ -2196,7 +2198,7 @@ namespace cppcanvas
rState
,
rState
,
*
rParms
.
maTextTransformation
)
);
*
rParms
.
maTextTransformation
)
);
else
else
ret
urn
ActionSharedPtr
(
new
EffectTextAction
(
ret
=
ActionSharedPtr
(
new
EffectTextAction
(
aStartPoint
,
aStartPoint
,
aReliefOffset
,
aReliefOffset
,
rReliefColor
,
rReliefColor
,
...
@@ -2221,7 +2223,7 @@ namespace cppcanvas
...
@@ -2221,7 +2223,7 @@ namespace cppcanvas
{
{
// nope
// nope
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
ret
urn
ActionSharedPtr
(
new
TextArrayAction
(
ret
=
ActionSharedPtr
(
new
TextArrayAction
(
aStartPoint
,
aStartPoint
,
rText
,
rText
,
nStartPos
,
nStartPos
,
...
@@ -2231,7 +2233,7 @@ namespace cppcanvas
...
@@ -2231,7 +2233,7 @@ namespace cppcanvas
rState
,
rState
,
*
rParms
.
maTextTransformation
)
);
*
rParms
.
maTextTransformation
)
);
else
else
ret
urn
ActionSharedPtr
(
new
TextArrayAction
(
ret
=
ActionSharedPtr
(
new
TextArrayAction
(
aStartPoint
,
aStartPoint
,
rText
,
rText
,
nStartPos
,
nStartPos
,
...
@@ -2244,7 +2246,7 @@ namespace cppcanvas
...
@@ -2244,7 +2246,7 @@ namespace cppcanvas
{
{
// at least one of the effects requested
// at least one of the effects requested
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
if
(
rParms
.
maTextTransformation
.
is_initialized
()
)
ret
urn
ActionSharedPtr
(
new
EffectTextArrayAction
(
ret
=
ActionSharedPtr
(
new
EffectTextArrayAction
(
aStartPoint
,
aStartPoint
,
aReliefOffset
,
aReliefOffset
,
rReliefColor
,
rReliefColor
,
...
@@ -2259,7 +2261,7 @@ namespace cppcanvas
...
@@ -2259,7 +2261,7 @@ namespace cppcanvas
rState
,
rState
,
*
rParms
.
maTextTransformation
)
);
*
rParms
.
maTextTransformation
)
);
else
else
ret
urn
ActionSharedPtr
(
new
EffectTextArrayAction
(
ret
=
ActionSharedPtr
(
new
EffectTextArrayAction
(
aStartPoint
,
aStartPoint
,
aReliefOffset
,
aReliefOffset
,
rReliefColor
,
rReliefColor
,
...
@@ -2274,9 +2276,7 @@ namespace cppcanvas
...
@@ -2274,9 +2276,7 @@ namespace cppcanvas
rState
)
);
rState
)
);
}
}
}
}
#if defined(__GNUC__)
return
ret
;
return
ActionSharedPtr
();
#endif
}
}
}
}
}
}
...
...
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