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
72c2f30c
Kaydet (Commit)
72c2f30c
authored
12 years ago
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wtautological-constant-out-of-range-compare
Change-Id: I99ae1590067d66f0af968833bc75d773ad3cb15c
üst
71a1df3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
cppunittester.cxx
sal/cppunittester/cppunittester.cxx
+4
-6
No files found.
sal/cppunittester/cppunittester.cxx
Dosyayı görüntüle @
72c2f30c
...
...
@@ -23,7 +23,6 @@
#include <cstdlib>
#include <iostream>
#include <limits>
#include <string>
#include <sal/types.h>
#include "cppunittester/protectorfactory.hxx"
...
...
@@ -49,6 +48,7 @@
#include "boost/noncopyable.hpp"
#include "boost/ptr_container/ptr_vector.hpp"
#include "boost/static_assert.hpp"
namespace
{
...
...
@@ -68,12 +68,10 @@ rtl::OUString getArgument(sal_Int32 index) {
std
::
string
convertLazy
(
rtl
::
OUString
const
&
s16
)
{
rtl
::
OString
s8
(
rtl
::
OUStringToOString
(
s16
,
osl_getThreadTextEncoding
()));
BOOST_STATIC_ASSERT
(
sizeof
(
sal_Int32
)
<=
sizeof
(
std
::
string
::
size_type
));
// ensure following cast is legitimate
return
std
::
string
(
s8
.
getStr
(),
((
static_cast
<
sal_uInt32
>
(
s8
.
getLength
())
>
(
std
::
numeric_limits
<
std
::
string
::
size_type
>::
max
)())
?
(
std
::
numeric_limits
<
std
::
string
::
size_type
>::
max
)()
:
static_cast
<
std
::
string
::
size_type
>
(
s8
.
getLength
())));
s8
.
getStr
(),
static_cast
<
std
::
string
::
size_type
>
(
s8
.
getLength
()));
}
//Output how long each test took
...
...
This diff is collapsed.
Click to expand it.
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