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
de0ea666
Kaydet (Commit)
de0ea666
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: sal
Change-Id: I7caadbc06b2266800666151de75d799c42148aca
üst
12162c82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
math.hxx
include/rtl/math.hxx
+1
-1
rtl_tencinfo.cxx
sal/qa/rtl/textenc/rtl_tencinfo.cxx
+1
-1
No files found.
include/rtl/math.hxx
Dosyayı görüntüle @
de0ea666
...
@@ -294,7 +294,7 @@ inline bool approxEqual(double a, double b, sal_Int16 nPrec)
...
@@ -294,7 +294,7 @@ inline bool approxEqual(double a, double b, sal_Int16 nPrec)
return
true
;
return
true
;
double
x
=
a
-
b
;
double
x
=
a
-
b
;
return
(
x
<
0.0
?
-
x
:
x
)
return
(
x
<
0.0
?
-
x
:
x
)
<
((
a
<
0.0
?
-
a
:
a
)
*
(
1.0
/
(
pow
(
static_cast
<
double
>
(
2.0
)
,
nPrec
))));
<
((
a
<
0.0
?
-
a
:
a
)
*
(
1.0
/
(
pow
(
2.0
,
nPrec
))));
}
}
/** Add two values.
/** Add two values.
...
...
sal/qa/rtl/textenc/rtl_tencinfo.cxx
Dosyayı görüntüle @
de0ea666
...
@@ -1012,7 +1012,7 @@ namespace
...
@@ -1012,7 +1012,7 @@ namespace
{
{
const
sal_uInt8
nCharSet
=
rtl_getBestWindowsCharsetFromTextEncoding
(
nIn
);
const
sal_uInt8
nCharSet
=
rtl_getBestWindowsCharsetFromTextEncoding
(
nIn
);
rtl_TextEncoding
eTextEnc
=
rtl_getTextEncodingFromWindowsCharset
(
nCharSet
);
rtl_TextEncoding
eTextEnc
=
rtl_getTextEncodingFromWindowsCharset
(
nCharSet
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"rtl_getBestWindowsCharsetFromTextEncoding && rtl_getTextEncodingFromWindowsCharset differ"
,
static_cast
<
rtl_TextEncoding
>
(
nOut
)
,
eTextEnc
);
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
"rtl_getBestWindowsCharsetFromTextEncoding && rtl_getTextEncodingFromWindowsCharset differ"
,
nOut
,
eTextEnc
);
}
}
void
WindowsCharsetFromTextEncoding_MS_1252
()
void
WindowsCharsetFromTextEncoding_MS_1252
()
...
...
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