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
29c0bcff
Kaydet (Commit)
29c0bcff
authored
Şub 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Better CPPUNIT_ASSERT_EQUAL output for sal_Int8 etc.
Change-Id: I236e8db4cf63fc284b1491591001357a0c662471
üst
a4dbfa82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
assertion_traits.hxx
include/unotest/assertion_traits.hxx
+42
-0
ooxmlimport.cxx
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+1
-0
No files found.
include/unotest/assertion_traits.hxx
0 → 100644
Dosyayı görüntüle @
29c0bcff
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_UNOTEST_ASSERTION_TRAITS_HXX
#define INCLUDED_UNOTEST_ASSERTION_TRAITS_HXX
// sal/types.h declares typedefs to signed char (sal_Int8) and unsigned char
// (sal_uInt8, sal_Bool), so better specialize CppUnit::assertion_traits for
// those two types to treat the toString() value as an integer rather than a
// character:
#include <sal/config.h>
#include <string>
namespace
CppUnit
{
template
<>
struct
assertion_traits
<
signed
char
>
{
static
bool
equal
(
signed
char
x
,
signed
char
y
)
{
return
x
==
y
;
}
static
std
::
string
toString
(
signed
char
x
)
{
return
std
::
to_string
(
static_cast
<
int
>
(
x
));
}
};
template
<>
struct
assertion_traits
<
unsigned
char
>
{
static
bool
equal
(
unsigned
char
x
,
unsigned
char
y
)
{
return
x
==
y
;
}
static
std
::
string
toString
(
unsigned
char
x
)
{
return
std
::
to_string
(
static_cast
<
unsigned
int
>
(
x
));
}
};
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/qa/extras/ooxmlimport/ooxmlimport.cxx
Dosyayı görüntüle @
29c0bcff
...
...
@@ -60,6 +60,7 @@
#include <com/sun/star/style/ParagraphAdjust.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <vcl/svapp.hxx>
#include <unotest/assertion_traits.hxx>
#include <unotools/fltrcfg.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <com/sun/star/text/GraphicCrop.hpp>
...
...
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