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
2ced777e
Kaydet (Commit)
2ced777e
authored
Nis 06, 2017
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improved loplugin:redundantcast, static_cast on arithmetic types: svtools
Change-Id: Idcd8a32f85788fe0d763c2f72475e3bef4221366
üst
42c490fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
valueacc.cxx
svtools/source/control/valueacc.cxx
+1
-1
exportdialog.cxx
svtools/source/filter/exportdialog.cxx
+2
-2
No files found.
svtools/source/control/valueacc.cxx
Dosyayı görüntüle @
2ced777e
...
@@ -654,7 +654,7 @@ ValueSetItem* ValueSetAcc::getItem (sal_uInt16 nIndex) const
...
@@ -654,7 +654,7 @@ ValueSetItem* ValueSetAcc::getItem (sal_uInt16 nIndex) const
nIndex
-=
1
;
nIndex
-=
1
;
}
}
if
(
pItem
==
nullptr
)
if
(
pItem
==
nullptr
)
pItem
=
mpParent
->
ImplGetItem
(
static_cast
<
sal_uInt16
>
(
nIndex
)
);
pItem
=
mpParent
->
ImplGetItem
(
nIndex
);
return
pItem
;
return
pItem
;
}
}
...
...
svtools/source/filter/exportdialog.cxx
Dosyayı görüntüle @
2ced777e
...
@@ -1012,7 +1012,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeX, Edit&, void)
...
@@ -1012,7 +1012,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeX, Edit&, void)
Fraction
aFract
(
1
,
100
);
Fraction
aFract
(
1
,
100
);
sal_Int32
nWidth
=
mpMfSizeX
->
GetValue
();
sal_Int32
nWidth
=
mpMfSizeX
->
GetValue
();
sal_Int32
nHeight
=
static_cast
<
sal_Int32
>
(
nWidth
*
fRatio
);
sal_Int32
nHeight
=
static_cast
<
sal_Int32
>
(
nWidth
*
fRatio
);
const
Size
aSource
(
static_cast
<
sal_Int32
>
(
nWidth
),
static_cast
<
sal_Int32
>
(
nHeight
)
);
const
Size
aSource
(
nWidth
,
nHeight
);
MapMode
aSourceMapMode
(
GetMapUnit
(
mpLbSizeX
->
GetSelectEntryPos
()
),
Point
(),
aFract
,
aFract
);
MapMode
aSourceMapMode
(
GetMapUnit
(
mpLbSizeX
->
GetSelectEntryPos
()
),
Point
(),
aFract
,
aFract
);
Size
aDest
(
LogicToLogic
(
aSource
,
aSourceMapMode
,
MapUnit
::
Map100thMM
)
);
Size
aDest
(
LogicToLogic
(
aSource
,
aSourceMapMode
,
MapUnit
::
Map100thMM
)
);
...
@@ -1044,7 +1044,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeY, Edit&, void)
...
@@ -1044,7 +1044,7 @@ IMPL_LINK_NOARG(ExportDialog, UpdateHdlMtfSizeY, Edit&, void)
Fraction
aFract
(
1
,
100
);
Fraction
aFract
(
1
,
100
);
sal_Int32
nHeight
=
mpMfSizeY
->
GetValue
();
sal_Int32
nHeight
=
mpMfSizeY
->
GetValue
();
sal_Int32
nWidth
=
static_cast
<
sal_Int32
>
(
nHeight
*
fRatio
);
sal_Int32
nWidth
=
static_cast
<
sal_Int32
>
(
nHeight
*
fRatio
);
const
Size
aSource
(
static_cast
<
sal_Int32
>
(
nWidth
),
static_cast
<
sal_Int32
>
(
nHeight
)
);
const
Size
aSource
(
nWidth
,
nHeight
);
MapMode
aSourceMapMode
(
GetMapUnit
(
mpLbSizeX
->
GetSelectEntryPos
()
),
Point
(),
aFract
,
aFract
);
MapMode
aSourceMapMode
(
GetMapUnit
(
mpLbSizeX
->
GetSelectEntryPos
()
),
Point
(),
aFract
,
aFract
);
Size
aDest
(
LogicToLogic
(
aSource
,
aSourceMapMode
,
MapUnit
::
Map100thMM
)
);
Size
aDest
(
LogicToLogic
(
aSource
,
aSourceMapMode
,
MapUnit
::
Map100thMM
)
);
...
...
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