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
091fde62
Kaydet (Commit)
091fde62
authored
Agu 29, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin include file with unused stuff
Change-Id: I6c4b78a673183252604da0fe2deff6e4a2fa60d6
üst
be662ff5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
66 deletions
+0
-66
needed_cast.hxx
sw/source/filter/ww8/needed_cast.hxx
+0
-2
staticassert.hxx
sw/source/filter/ww8/staticassert.hxx
+0
-63
styles.cxx
sw/source/filter/ww8/styles.cxx
+0
-1
No files found.
sw/source/filter/ww8/needed_cast.hxx
Dosyayı görüntüle @
091fde62
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_NEEDED_CAST_HXX
#include "staticassert.hxx"
namespace
ww
namespace
ww
{
{
template
<
typename
Ret
,
typename
Param
>
Ret
checking_cast
(
Param
in
,
Ret
)
template
<
typename
Ret
,
typename
Param
>
Ret
checking_cast
(
Param
in
,
Ret
)
...
...
sw/source/filter/ww8/staticassert.hxx
deleted
100644 → 0
Dosyayı görüntüle @
be662ff5
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_STATICASSERT_HXX
#define INCLUDED_SW_SOURCE_FILTER_WW8_STATICASSERT_HXX
/*
Lifted direct from:
Modern C++ Design: Generic Programming and Design Patterns Applied
Section 2.1
by Andrei Alexandrescu
*/
namespace
ww
{
template
<
bool
>
class
compile_time_check
{
public
:
compile_time_check
(...)
{}
};
template
<>
class
compile_time_check
<
false
>
{
};
}
/*
Similar to assert, StaticAssert is only in operation when NDEBUG is not
defined. It will test its first argument at compile time and on failure
report the error message of the second argument, which must be a valid c++
classname. i.e. no spaces, punctuation or reserved keywords.
*/
#ifndef NDEBUG
# define StaticAssert(test, errormsg) \
do { \
struct ERROR_##errormsg {}; \
typedef ww::compile_time_check< (test) != 0 > tmplimpl; \
tmplimpl aTemp = tmplimpl(ERROR_##errormsg()); \
sizeof(aTemp); \
} while (0)
#else
# define StaticAssert(test, errormsg) \
do {} while (0)
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/filter/ww8/styles.cxx
Dosyayı görüntüle @
091fde62
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include <algorithm>
#include <algorithm>
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <osl/diagnose.h>
#include <osl/diagnose.h>
#include "staticassert.hxx"
namespace
namespace
{
{
...
...
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