diff options
Diffstat (limited to 'app-office/libreoffice/files/Nah-we-still-need-the-dynamic_cast.patch')
| -rw-r--r-- | app-office/libreoffice/files/Nah-we-still-need-the-dynamic_cast.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/app-office/libreoffice/files/Nah-we-still-need-the-dynamic_cast.patch b/app-office/libreoffice/files/Nah-we-still-need-the-dynamic_cast.patch deleted file mode 100644 index 47e016ec..00000000 --- a/app-office/libreoffice/files/Nah-we-still-need-the-dynamic_cast.patch +++ /dev/null @@ -1,32 +0,0 @@ -From b2a50c70072d55d0055d41e6862138a6a06cb08d Mon Sep 17 00:00:00 2001 -From: Tor Lillqvist <tml@iki.fi> -Date: Tue, 28 May 2013 06:12:27 +0000 -Subject: Nah, we still need the dynamic_cast in SAL_STREAM for gcc/libstdc++ - -Not sure if MSVC would accept also the simpler thing, but anyway, the -dynamic_cast works for it, too. - -Change-Id: I2dfa1e70b75bc17d38b5e95be0a0f1dd66767bf1 ---- -(limited to 'include/sal/log.hxx') - -diff --git a/include/sal/log.hxx b/include/sal/log.hxx -index ca3bb5e..23ea6f3 100644 ---- a/include/sal/log.hxx -+++ b/include/sal/log.hxx -@@ -157,8 +157,13 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) { - - @since LibreOffice 3.5 - */ -+#ifdef _LIBCPP_VERSION - #define SAL_STREAM(stream) \ - (::std::ostringstream() << stream).str() -+#else -+#define SAL_STREAM(stream) \ -+ (dynamic_cast< ::std::ostringstream & >(::std::ostringstream() << stream).str()) -+#endif - - /** - @page sal_log Basic logging functionality. --- -cgit v0.9.0.2-2-gbebe |
