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
3891d323
Kaydet (Commit)
3891d323
authored
Ock 30, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Introduce SAL_OVERRIDE
Change-Id: I3675b627d5e9ca19b2c4fb69fef12d0dabf94a43
üst
086b070e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
2 deletions
+49
-2
config_global.h.in
config/config_global.h.in
+1
-0
configure.ac
configure.ac
+33
-0
vmlshape.hxx
oox/inc/oox/vml/vmlshape.hxx
+2
-2
types.h
sal/inc/sal/types.h
+13
-0
No files found.
config/config_global.h.in
Dosyayı görüntüle @
3891d323
...
...
@@ -13,6 +13,7 @@ Any change in this header will cause a rebuild of almost everything.
#define CONFIG_GLOBAL_H
#undef HAVE_CXX11_DELETE
#undef HAVE_CXX11_OVERRIDE
#undef HAVE_GCC_BUILTIN_ATOMIC
#undef HAVE_SFINAE_ANONYMOUS_BROKEN
#undef HAVE_THREADSAFE_STATICS
...
...
configure.ac
Dosyayı görüntüle @
3891d323
...
...
@@ -5649,6 +5649,39 @@ else
AC_MSG_RESULT([no (C++11 disabled)])
fi
dnl ==================================
dnl Check for C++11 "override" support
dnl ==================================
AC_MSG_CHECKING([whether $CXX supports C++11 override syntax])
if test "$HAVE_CXX0X" = "TRUE"; then
save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11"
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
struct A
{
virtual void test();
};
struct B : A
{
virtual void test() override;
};
]])],[HAVE_CXX11_OVERRIDE=TRUE],[])
AC_LANG_POP([C++])
CXXFLAGS=$save_CXXFLAGS
if test "$HAVE_CXX11_OVERRIDE" = "TRUE"; then
AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_CXX11_OVERRIDE])
else
AC_MSG_RESULT([no])
fi
else
AC_MSG_RESULT([no (C++11 disabled)])
fi
dnl ===================================================================
dnl system stl sanity tests
dnl ===================================================================
...
...
oox/inc/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
3891d323
...
...
@@ -340,9 +340,9 @@ public:
protected
:
/** Returns the absolute shape rectangle. */
virtual
::
com
::
sun
::
star
::
awt
::
Rectangle
getAbsRectangle
()
const
;
virtual
::
com
::
sun
::
star
::
awt
::
Rectangle
getAbsRectangle
()
const
SAL_OVERRIDE
;
/** Returns the rectangle relative to the parent coordinate system. */
virtual
::
com
::
sun
::
star
::
awt
::
Rectangle
getRelRectangle
()
const
;
virtual
::
com
::
sun
::
star
::
awt
::
Rectangle
getRelRectangle
()
const
SAL_OVERRIDE
;
};
/** Bezier shape object that supports to, from, control1 and control2
...
...
sal/inc/sal/types.h
Dosyayı görüntüle @
3891d323
...
...
@@ -416,6 +416,19 @@ namespace css = ::com::sun::star;
#define SAL_DELETED_FUNCTION
#endif
/** C++11 "override" feature.
With HAVE_CXX11_OVERRIDE, force the method to override a existing method in
parent, error out if the method with the correct signature does not exist.
@since LibreOffice 4.1
*/
#if defined HAVE_CXX11_OVERRIDE
#define SAL_OVERRIDE override
#else
#define SAL_OVERRIDE
#endif
#endif
/* __cplusplus */
#ifdef __cplusplus
...
...
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