summaryrefslogtreecommitdiff
path: root/boost/core/demangle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/core/demangle.hpp')
-rw-r--r--boost/core/demangle.hpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/boost/core/demangle.hpp b/boost/core/demangle.hpp
index f13c26a7f4..dc714d806c 100644
--- a/boost/core/demangle.hpp
+++ b/boost/core/demangle.hpp
@@ -93,15 +93,10 @@ inline void demangle_free( char const * name ) BOOST_NOEXCEPT
inline std::string demangle( char const * name )
{
scoped_demangled_name demangled_name( name );
- char const * const p = demangled_name.get();
- if( p )
- {
- return p;
- }
- else
- {
- return name;
- }
+ char const * p = demangled_name.get();
+ if( !p )
+ p = name;
+ return p;
}
#else