Kaydet (Commit) 691b6ea8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make the SAL_STREAM thing compile with clang++ -std=c++11 -stdlib=libc++

Avoid error: dynamic_cast from rvalue to reference type
'::std::ostringstream &'.

Change-Id: If5ba1ee79616e81b12f9db67c61b4f085b30a08e
üst e0fc16f7
......@@ -158,8 +158,7 @@ inline char const * unwrapStream(SAL_UNUSED_PARAMETER StreamIgnore const &) {
@since LibreOffice 3.5
*/
#define SAL_STREAM(stream) \
(dynamic_cast< ::std::ostringstream & >(::std::ostringstream() << stream). \
str())
(::std::ostringstream() << stream).str()
/**
@page sal_log Basic logging functionality.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment