From 66397a4fd222757a8bd651c0c297615319eac4a5 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 16 Dec 2013 20:28:45 +0100 Subject: fdo#72598 Remove SunStudio cruft from code base Change-Id: I5150eec33228e18e274a8ae4effd3f185851b7f4 Reviewed-on: https://gerrit.libreoffice.org/7103 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- include/o3tl/heap_ptr.hxx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'include/o3tl') diff --git a/include/o3tl/heap_ptr.hxx b/include/o3tl/heap_ptr.hxx index 713aa21c41b8..d094c253f744 100644 --- a/include/o3tl/heap_ptr.hxx +++ b/include/o3tl/heap_ptr.hxx @@ -78,9 +78,7 @@ class heap_ptr typedef T element_type; /// Provided for generic programming. typedef heap_ptr self; -#ifndef __SUNPRO_CC typedef T * (self::* safe_bool )(); -#endif /// Now, pass_heapObject is owned by this. explicit heap_ptr( @@ -98,13 +96,7 @@ class heap_ptr const T * operator->() const; T * operator->(); - /// True, if pHeapObject != 0. -#ifndef __SUNPRO_CC operator safe_bool() const; -#else // workaround opt bug of Sun C++ compiler, when compiling with -xO3 - operator bool() const; -#endif - /** This deletes any prevoiusly existing ->pHeapObject. Now, pass_heapObject, if != 0, is owned by this. @@ -224,8 +216,6 @@ heap_ptr::operator->() return pHeapObject; } -#ifndef __SUNPRO_CC - template inline heap_ptr::operator typename heap_ptr::safe_bool() const @@ -235,18 +225,6 @@ heap_ptr::operator typename heap_ptr::safe_bool() const : safe_bool(0); } -#else - -template -inline heap_ptr::operator bool() const -{ - return is(); -} - -#endif // !defined(__SUNPRO_CC) - - - template void heap_ptr::reset(T * pass_heapObject) -- cgit