Kaydet (Commit) 34cabe83 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unreffun

Change-Id: Idc0f3ef53f48b2e77e4cecbcdbbc44a115c6ec2e
üst 09a90c2f
...@@ -304,20 +304,12 @@ void* DbgFunc( sal_uInt16 nAction, void* pParam ) ...@@ -304,20 +304,12 @@ void* DbgFunc( sal_uInt16 nAction, void* pParam )
} }
} }
#else
void* DbgFunc( sal_uInt16, void* ) { return NULL; }
#endif #endif
#if OSL_DEBUG_LEVEL > 0
TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo) TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo)
{ {
#if OSL_DEBUG_LEVEL == 0
(void) caught;
(void) currentFunction;
(void) fileAndLineNo;
#else
OString sMessage( "caught an exception!" ); OString sMessage( "caught an exception!" );
sMessage += "\nin function:"; sMessage += "\nin function:";
sMessage += currentFunction; sMessage += currentFunction;
...@@ -359,9 +351,10 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c ...@@ -359,9 +351,10 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c
SAL_DETAIL_LOG_FORMAT( SAL_DETAIL_LOG_FORMAT(
SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN, SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN,
"legacy.osl", fileAndLineNo, "%s", sMessage.getStr()); "legacy.osl", fileAndLineNo, "%s", sMessage.getStr());
#endif
} }
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -57,13 +57,10 @@ namespace utl ...@@ -57,13 +57,10 @@ namespace utl
void bind( void* _pLocation, const Type& _rType ); void bind( void* _pLocation, const Type& _rType );
bool isBound( ) const { return ( ltUnbound != eLocationType ) && ( NULL != pLocation ); }
const OUString& getPath( ) const { return sRelativePath; } const OUString& getPath( ) const { return sRelativePath; }
LocationType getLocType( ) const { return eLocationType; } LocationType getLocType( ) const { return eLocationType; }
void* getLocation( ) const { return pLocation; } void* getLocation( ) const { return pLocation; }
const Type& getDataType( ) const { return aDataType; } const Type& getDataType( ) const { return aDataType; }
bool operator == ( const NodeValueAccessor& rhs ) const;
}; };
NodeValueAccessor::NodeValueAccessor( const OUString& _rNodePath ) NodeValueAccessor::NodeValueAccessor( const OUString& _rNodePath )
...@@ -73,13 +70,6 @@ namespace utl ...@@ -73,13 +70,6 @@ namespace utl
{ {
} }
bool NodeValueAccessor::operator == ( const NodeValueAccessor& rhs ) const
{
return ( sRelativePath == rhs.sRelativePath )
&& ( eLocationType == rhs.eLocationType )
&& ( pLocation == rhs.pLocation );
}
void NodeValueAccessor::bind( void* _pLocation, const Type& _rType ) void NodeValueAccessor::bind( void* _pLocation, const Type& _rType )
{ {
DBG_ASSERT( !isBound(), "NodeValueAccessor::bind: already bound!" ); DBG_ASSERT( !isBound(), "NodeValueAccessor::bind: already bound!" );
......
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